[FIR] Set source on callee reference of implicit invoke receiver

This fixes an IllegalArgumentException when a diagnostic was reported on
it because no source was set.

#KT-61829 Fixed
This commit is contained in:
Kirill Rakhman
2023-09-13 12:08:36 +02:00
committed by Space Team
parent a224f9db34
commit ce65d3c7b8
7 changed files with 45 additions and 2 deletions
@@ -3847,6 +3847,12 @@ public class DiagnosticCompilerTestFirTestdataTestGenerated extends AbstractDiag
runTest("compiler/fir/analysis-tests/testData/resolve/problems/incompleteWhen.kt");
}
@Test
@TestMetadata("incorrectGenericLambdaProperty.kt")
public void testIncorrectGenericLambdaProperty() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/problems/incorrectGenericLambdaProperty.kt");
}
@Test
@TestMetadata("innerClassHierarchy.kt")
public void testInnerClassHierarchy() throws Exception {
@@ -3847,6 +3847,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated
runTest("compiler/fir/analysis-tests/testData/resolve/problems/incompleteWhen.kt");
}
@Test
@TestMetadata("incorrectGenericLambdaProperty.kt")
public void testIncorrectGenericLambdaProperty() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/problems/incorrectGenericLambdaProperty.kt");
}
@Test
@TestMetadata("innerClassHierarchy.kt")
public void testInnerClassHierarchy() throws Exception {