Properly load objects nested into class objects from Java

This commit is contained in:
Andrey Breslav
2013-06-07 17:47:40 +04:00
parent 56f040608a
commit 3e8031acbd
9 changed files with 76 additions and 11 deletions
@@ -14,7 +14,7 @@ package toplevelObjectDeclarations
}
}
object B : <!UNRESOLVED_REFERENCE!>A<!> {}
object B : <!SUPERTYPE_NOT_INITIALIZED, FINAL_SUPERTYPE!>A<!> {}
val x = A.foo()
@@ -26,4 +26,4 @@ package toplevelObjectDeclarations
override fun foo() : Int = 1
}
val z = y.foo()
val z = y.foo()
@@ -3,4 +3,4 @@ package toplevelObjectDeclarations
object CObj {}
object DOjb : <!UNRESOLVED_REFERENCE!>CObj<!> {}
object DOjb : <!SUPERTYPE_NOT_INITIALIZED, FINAL_SUPERTYPE!>CObj<!> {}
@@ -0,0 +1,8 @@
package test
public class Outer {
public object Obj {
public val v: String = "val"
public fun f(): String = "fun"
}
}
@@ -0,0 +1,13 @@
package test
public final class Outer {
/*primary*/ public constructor Outer()
public final val Obj: test.Outer.Obj
public object Obj {
/*primary*/ private constructor Obj()
public final val v: jet.String
public final fun <get-v>(): jet.String
public final fun f(): jet.String
}
}