Files
kotlin-fork/compiler/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.jet
T
2011-10-20 16:21:18 +02:00

13 lines
270 B
Plaintext

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>) : ().-()