Report SUPERTYPE_NOT_INITIALIZED even if no constructors in superclass

Before this commit, expect super-class without constructors did not
provoke SUPERTYPE_NOT_INITIALIZED. However, it should, but only
if sub-type is normal class (not an expect one).

So #KT-24597 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-07-26 16:54:35 +03:00
parent 6db2037440
commit 1d2438e04e
5 changed files with 69 additions and 1 deletions
@@ -13055,6 +13055,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/headerClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("baseExpectClassWithoutConstructor.kt")
public void testBaseExpectClassWithoutConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/baseExpectClassWithoutConstructor.kt");
}
@TestMetadata("classKinds.kt")
public void testClassKinds() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/classKinds.kt");
@@ -13055,6 +13055,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/multiplatform/headerClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("baseExpectClassWithoutConstructor.kt")
public void testBaseExpectClassWithoutConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/baseExpectClassWithoutConstructor.kt");
}
@TestMetadata("classKinds.kt")
public void testClassKinds() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/classKinds.kt");