Files
kotlin-fork/compiler/testData/resolvedCalls/invoke/invokeOnClassObject1.txt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

17 lines
276 B
Plaintext

class A {
default object {
fun invoke(i: Int) = i
}
}
fun test() = <caret>A(1)
Resolved call:
Resulting descriptor: default object defined in A
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER