[FIR] Complete delegated constructor calls without proper constructed type

This is needed to definitely complete arguments of such calls
This commit is contained in:
Dmitriy Novozhilov
2022-02-04 15:28:02 +03:00
committed by teamcity
parent 1591518cf6
commit aadfc59d0f
10 changed files with 62 additions and 19 deletions
@@ -0,0 +1,3 @@
KtErrorCallInfo:
candidateCalls = []
diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference: Unresolved>
@@ -1,3 +1,3 @@
KtErrorCallInfo:
candidateCalls = []
diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference: Unresolved>
diagnostic = ERROR<OTHER_ERROR: Unknown (other) error>
@@ -1175,6 +1175,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/constructors"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("erroneousDelegatedConstructorCall.kt")
public void testErroneousDelegatedConstructorCall() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/constructors/erroneousDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("noSuperCallInSupertypes.kt")
public void testNoSuperCallInSupertypes() throws Exception {