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

19 lines
315 B
Plaintext

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