diff --git a/compiler/testData/codegen/regressions/kt1047.kt b/compiler/testData/codegen/regressions/kt1047.kt new file mode 100644 index 00000000000..f2a87f05f7e --- /dev/null +++ b/compiler/testData/codegen/regressions/kt1047.kt @@ -0,0 +1,13 @@ +public open class Test() { + open public fun test() : Unit { + System.out?.println(hello) + } + class object { + private val hello : String? = "Hello" + } +} + +fun box() : String { + Test().test() + return "OK" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/ObjectGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/ObjectGenTest.java index 9db2d483ca3..86b30cfd73a 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/ObjectGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/ObjectGenTest.java @@ -34,4 +34,8 @@ public class ObjectGenTest extends CodegenTestCase { public void testKt1136() throws Exception { blackBoxFile("regressions/kt1136.kt"); } + + public void testKt1047() throws Exception { + blackBoxFile("regressions/kt1047.kt"); + } }