test for obsolete KT-1528

This commit is contained in:
Alex Tkachman
2012-08-09 14:07:39 +03:00
parent 611a100235
commit 231dda6002
3 changed files with 10 additions and 0 deletions
@@ -0,0 +1 @@
fun box() = foo()
@@ -0,0 +1,4 @@
private val a = "OK"
fun foo() : String {
return "${a}"
}
@@ -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");