mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
11 lines
302 B
Swift
11 lines
302 B
Swift
// RUN: not --crash %swift -emit-ir %s
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// http://www.openradar.me/17822208
|
|
// https://twitter.com/rob_rix/status/493199478879682561
|
|
|
|
func a<T>() -> (T, T -> T) -> T {
|
|
var b: ((T, T -> T) -> T)!
|
|
return b
|
|
}
|
|
|