Files
swift-mirror/validation-test/compiler_crashers_fixed/00226-swift-lowering-silgenfunction-emitcurrythunk.swift
Chris Willmore 983a674e0c Make use of curried function declaration syntax an error.
<rdar://problem/23111018>
2016-01-20 21:57:38 -08:00

14 lines
321 B
Swift

// RUN: not %target-swift-frontend %s -emit-silgen
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// http://www.openradar.me/18456545
enum S<T> : P {
func f<T>() -> T -> T {
}
}
protocol P {
func f<T>()(_: T) -> T
}