Files
kotlin-fork/compiler/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.kt
T
2013-09-17 18:10:00 +04:00

13 lines
270 B
Kotlin

fun {[a] T<T>.(A<B>) : ()}.foo()
fun {[a] T<T>.(A<B>) : ()}.foo();
fun {[a] T<T>.(A<B>) : ()}.foo() {}
fun [a] {[a] T<T>.(A<B>) : ()}.foo() {}
fun <A, B> [a] {() : Unit}.foo()
// And tuples, too
fun (A, B).foo() : Unit {}
// Recovery
fun fun [a] T<T>.(A<B>) : ().-()