[K2]: compiler crash on unresolved delegated extention receiver

A report of UNRESOLVED_REFERENCE should not be made for elements like
FirImplicitThisReference that don't have a source, as they are implicit.

#KT-65044 Fixed
This commit is contained in:
Anastasia.Nekrasova
2024-01-24 21:54:33 +02:00
committed by Space Team
parent 1d817e2ace
commit ee143e9370
7 changed files with 43 additions and 5 deletions
@@ -404,6 +404,12 @@ public class DiagnosticCompilerTestFirTestdataTestGenerated extends AbstractDiag
runTest("compiler/fir/analysis-tests/testData/resolve/javaStaticScopeInheritance.kt");
}
@Test
@TestMetadata("KT-65044.kt")
public void testKT_65044() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/KT-65044.kt");
}
@Test
@TestMetadata("kt41984.kt")
public void testKt41984() throws Exception {
@@ -404,6 +404,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated
runTest("compiler/fir/analysis-tests/testData/resolve/javaStaticScopeInheritance.kt");
}
@Test
@TestMetadata("KT-65044.kt")
public void testKT_65044() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/KT-65044.kt");
}
@Test
@TestMetadata("kt41984.kt")
public void testKt41984() throws Exception {