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:
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user