Files
kotlin-fork/compiler/testData/resolvedCalls/invoke/invokeOnClassObject2.txt
T
Alexander Udalov 3a8ad45dec Append newline to EOF for .txt test data files
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00

21 lines
362 B
Plaintext

class A {
class object {
fun invoke(i: Int) = i
}
}
fun test() = A<caret>(1)
Resolved call:
Resulting descriptor: fun invoke(i: Int): Int defined in A.<class-object-for-A>
Explicit receiver kind = DISPATCH_RECEIVER
Dispatch receiver = A {<class-object-for-A>}
Extension receiver = NO_RECEIVER
Value arguments mapping:
SUCCESS i : Int = 1