diff --git a/compiler/testData/diagnostics/tests/subtyping/kt304.kt b/compiler/testData/diagnostics/tests/subtyping/kt304.kt new file mode 100644 index 00000000000..95b34f3a56a --- /dev/null +++ b/compiler/testData/diagnostics/tests/subtyping/kt304.kt @@ -0,0 +1,7 @@ +//KT-304: Resolve supertype reference to class anyway + +open class Foo() : Bar() { +} + +open class Bar() { +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java index 5ff62bb5fd0..a0279cbe40d 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -2675,6 +2675,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage doTest("compiler/testData/diagnostics/tests/subtyping/kt2069.kt"); } + @TestMetadata("kt304.kt") + public void testKt304() throws Exception { + doTest("compiler/testData/diagnostics/tests/subtyping/kt304.kt"); + } + @TestMetadata("kt-1457.kt") public void testKt_1457() throws Exception { doTest("compiler/testData/diagnostics/tests/subtyping/kt-1457.kt");