[FE 1.0] Prohibit call of constructor of functional supertype

^KT-46344
^KT-50730 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-01-11 17:17:45 +03:00
committed by teamcity
parent ecc890efe8
commit ff7eb79bb1
16 changed files with 319 additions and 1 deletions
@@ -4721,6 +4721,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/classObjects/ClassObjects.kt");
}
@Test
@TestMetadata("classWithFunctionSupertype_after.kt")
public void testClassWithFunctionSupertype_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/classObjects/classWithFunctionSupertype_after.kt");
}
@Test
@TestMetadata("classWithFunctionSupertype_before.kt")
public void testClassWithFunctionSupertype_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/classObjects/classWithFunctionSupertype_before.kt");
}
@Test
@TestMetadata("companionObjectOfPrivateClassVisibility.kt")
public void testCompanionObjectOfPrivateClassVisibility() throws Exception {