Implement missing invoke resolution branch with context receivers

#KT-61937 fixed
Note: the current implementation only resolves for a single receiver
in each group. See KT-62712 and KT-62709 for the followup.
This commit is contained in:
Ilya Chernikov
2023-10-18 10:57:52 +02:00
committed by Space Team
parent b89d8a65a1
commit 268d058bbb
17 changed files with 172 additions and 1 deletions
@@ -12687,6 +12687,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/labelsFromClassNameForbidden.kt");
}
@Test
@TestMetadata("lambdaReceiverFromContext.kt")
public void testLambdaReceiverFromContext() throws Exception {
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/lambdaReceiverFromContext.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -12687,6 +12687,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/labelsFromClassNameForbidden.kt");
}
@Test
@TestMetadata("lambdaReceiverFromContext.kt")
public void testLambdaReceiverFromContext() throws Exception {
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/lambdaReceiverFromContext.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {