Files
swift-mirror/validation-test/compiler_crashers/012-fixpoint-of-higher-order-function.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
}