Record reference to class object directly

not to containing class descriptor
This commit is contained in:
Svetlana Isakova
2014-08-02 15:52:55 +04:00
parent 7f33ad90a6
commit 6f4c152f53
15 changed files with 105 additions and 61 deletions
@@ -3,6 +3,7 @@ package foo
fun test() {
A.d
A.<!INVISIBLE_MEMBER!>f<!>
<!INVISIBLE_MEMBER!>CCC<!>
<!INVISIBLE_MEMBER!>CCC<!>.<!INVISIBLE_MEMBER!>classObjectVar<!>
}
@@ -1,7 +1,7 @@
package Jet86
~A~class A {
class object {
class A {
class ~A~object {
~A.x~val x = 1
}
}
@@ -9,7 +9,7 @@ fun test() = <caret>A(1)
Resolved call:
Resulting descriptor: class A
Resulting descriptor: class object
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER