Add test for obsolete issue

#KT-3311 Obsolete
This commit is contained in:
Alexander Udalov
2014-06-27 21:42:35 +04:00
parent 254a95ba1a
commit 52dadfc264
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,19 @@
// FILE: Super.java
public class Super {
public boolean foo;
public boolean bar;
public void setFoo(boolean foo) {
this.foo = foo;
}
}
// FILE: b.kt
public class Sub: Super() {
}
fun main(args: Array<String>) {
val x = Sub()
x.foo = true
x.bar = true
}
@@ -5012,6 +5012,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/j+k/kt3307.kt");
}
@TestMetadata("kt3311.kt")
public void testKt3311() throws Exception {
doTest("compiler/testData/diagnostics/tests/j+k/kt3311.kt");
}
@TestMetadata("mutableIterator.kt")
public void testMutableIterator() throws Exception {
doTest("compiler/testData/diagnostics/tests/j+k/mutableIterator.kt");