Files
kotlin-fork/idea/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.jet
T
Andrey Breslav e0d597a1bc JET-140 Change function type syntax
and tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 18:18:11 +04: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>) : ().-()