KT-454 test for obsolete issue

This commit is contained in:
Alex Tkachman
2012-08-06 10:47:51 +03:00
parent eaddf5db2d
commit 532c5b791c
2 changed files with 10 additions and 0 deletions
@@ -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"
}
@@ -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");
}
}