diff --git a/compiler/testData/codegen/regressions/kt1528_1.kt b/compiler/testData/codegen/regressions/kt1528_1.kt new file mode 100644 index 00000000000..3a79d6bfe14 --- /dev/null +++ b/compiler/testData/codegen/regressions/kt1528_1.kt @@ -0,0 +1 @@ +fun box() = foo() \ No newline at end of file diff --git a/compiler/testData/codegen/regressions/kt1528_3.kt b/compiler/testData/codegen/regressions/kt1528_3.kt new file mode 100644 index 00000000000..cd91be22861 --- /dev/null +++ b/compiler/testData/codegen/regressions/kt1528_3.kt @@ -0,0 +1,4 @@ +private val a = "OK" +fun foo() : String { + return "${a}" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java index 3ec12e348eb..50337f22a69 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java @@ -280,6 +280,11 @@ public class PropertyGenTest extends CodegenTestCase { blackBoxFile("regressions/kt2509.kt"); } + public void testKt1528() throws Exception { + createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); + blackBoxMultiFile("regressions/kt1528_1.kt", "regressions/kt1528_3.kt"); + } + public void testKt2589() throws Exception { createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); loadFile("regressions/kt2589.kt");