diff --git a/compiler/testData/codegen/regressions/kt454.kt b/compiler/testData/codegen/regressions/kt454.kt new file mode 100644 index 00000000000..602643ce076 --- /dev/null +++ b/compiler/testData/codegen/regressions/kt454.kt @@ -0,0 +1,5 @@ +fun box(): String { + var s1 = (@l1 "s") + val s2 = (@l2 if (@l3 true) s1 else null) + return if (s2 == "s") "OK" else "fail" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java index d4d9f678d25..fa22ec58ac1 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java @@ -518,4 +518,9 @@ public class ClassGenTest extends CodegenTestCase { createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); blackBoxFile("regressions/kt2480.kt"); } + + public void testKt454() { + createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); + blackBoxFile("regressions/kt454.kt"); + } }