KT-11028 Add test for the issue
This commit is contained in:
@@ -70,6 +70,10 @@ public class NestedTypesTest extends SingleFileTranslationTest {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testInnerObjectRefFromConstructor() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected List<String> additionalJsFiles(@NotNull EcmaVersion ecmaVersion) {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
class X {
|
||||
val a = Y.foo
|
||||
|
||||
object Y {
|
||||
val foo = 23
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(23, X().a)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user