Swift 1.2b1: Crash substituting generic arguments when calling nested generic functions

Originator:rix.rob
Number:rdar://19915254 Date Originated:21-Feb-2015 09:22 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-Beta (6D520o)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
If you nest a generic function within another generic function and call the inner one from within the outer, the compiler crashes.


Steps to Reproduce:
1. Compile this:
func f<T>(x: T) {
	func g<U>(x: U) {}
	g(x)
}


Expected Results:
I expected the compiler not to crash, which in hindsight was rather naïve of me.


Actual Results:
The compiler crashed.


Regression:
N/A


Notes:
Fairly certain this is a duplicate of something.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!