[FIR] Forbid creating abstract class instances via any qualified access
^KT-58938 Fixed
This commit is contained in:
committed by
Space Team
parent
fccb391f31
commit
5daec16ce0
+6
@@ -34,6 +34,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/AbstractAccessor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("abstractClassReference.kt")
|
||||
public void testAbstractClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/abstractClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AbstractInAbstractClass.kt")
|
||||
public void testAbstractInAbstractClass() throws Exception {
|
||||
|
||||
+6
@@ -34,6 +34,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/AbstractAccessor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("abstractClassReference.kt")
|
||||
public void testAbstractClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/abstractClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AbstractInAbstractClass.kt")
|
||||
public void testAbstractInAbstractClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user