From 52dadfc26414d916824a7e456724cca0ae98c872 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 27 Jun 2014 21:42:35 +0400 Subject: [PATCH] Add test for obsolete issue #KT-3311 Obsolete --- .../testData/diagnostics/tests/j+k/kt3311.kt | 19 +++++++++++++++++++ .../checkers/JetDiagnosticsTestGenerated.java | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/j+k/kt3311.kt diff --git a/compiler/testData/diagnostics/tests/j+k/kt3311.kt b/compiler/testData/diagnostics/tests/j+k/kt3311.kt new file mode 100644 index 00000000000..7874ea5c2f0 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/kt3311.kt @@ -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) { + val x = Sub() + x.foo = true + x.bar = true +} diff --git a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java index 6495690ade4..a119e222184 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -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");