[FIR] Filter out SAM constructors from MemberScopeTowerLevel

This tower level is for calls on a dispatch receiver, and it's not
allowed to call SAM constructors on a dispatch receiver.

#KT-60983 Fixed
This commit is contained in:
Kirill Rakhman
2023-10-24 14:27:02 +02:00
committed by Space Team
parent 576d8d1c10
commit 907ebb36d0
8 changed files with 151 additions and 5 deletions
@@ -29218,6 +29218,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/samConversions/kt50477.kt");
}
@Test
@TestMetadata("kt60983.kt")
public void testKt60983() throws Exception {
runTest("compiler/testData/diagnostics/tests/samConversions/kt60983.kt");
}
@Test
@TestMetadata("OverloadPriority.kt")
public void testOverloadPriority() throws Exception {
@@ -29218,6 +29218,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/samConversions/kt50477.kt");
}
@Test
@TestMetadata("kt60983.kt")
public void testKt60983() throws Exception {
runTest("compiler/testData/diagnostics/tests/samConversions/kt60983.kt");
}
@Test
@TestMetadata("OverloadPriority.kt")
public void testOverloadPriority() throws Exception {