backend tests: INSTANCE$ -> INSTANCE

This commit is contained in:
Michael Bogdanov
2015-10-08 15:21:21 +03:00
parent 679748e1ee
commit a4997e8b31
6 changed files with 8 additions and 6 deletions
@@ -14,6 +14,7 @@ class B {
One DEPRECATED is for _DefaultPackage
One is for _DefaultPackage.getCONST_VAL
3 others are for getCONST_VAL
One more for INSTANCE$ temporarily
*/
// 6 DEPRECATED
@@ -2,5 +2,6 @@ object A {
val r: Int = 1
}
// Field initialized in constant pool
// A super constructor call, INSTANCE and INSTANCE$ put
// A super constructor call and INSTANCE put
// One more for INSTANCE$ put (temporarily)
// 3 ALOAD 0
@@ -12,8 +12,8 @@ class ClassObject {
}
void accessToPackageObject() {
PackageInner.INSTANCE$.foo();
PackageInner.INSTANCE$.getValue();
PackageInner.INSTANCE.foo();
PackageInner.INSTANCE.getValue();
}
void accessToInnerClass() {
@@ -4,7 +4,7 @@ class Test {
public static void main(String[] args) {
A.getB();
A.getC(A.INSTANCE$);
A.getC(A.INSTANCE);
}
}
@@ -1,3 +1,3 @@
<!CONFLICTING_JVM_DECLARATIONS!>object O<!> {
<!CONFLICTING_JVM_DECLARATIONS!>val `INSTANCE$`: O<!> = null!!
<!CONFLICTING_JVM_DECLARATIONS!>val `INSTANCE`: O<!> = null!!
}
@@ -2,7 +2,7 @@ package
public object O {
private constructor O()
public final val `INSTANCE$`: O
public final val INSTANCE: O
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String