Files
kotlin-fork/compiler/testData/resolvedCalls/objectsAndClassObjects/classObject.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

19 lines
287 B
Plaintext

class Foo {
default object {
val baz = Foo()
}
}
fun test() {
Foo.<caret>baz
}
Resolved call:
Resulting descriptor: val baz: Foo defined in Foo.Default
Explicit receiver kind = DISPATCH_RECEIVER
Dispatch receiver = Foo {Default}
Extension receiver = NO_RECEIVER