Fix ambiguity between Java and Kotlin SAM candidates
Because of incorrect flag we generated synthetic SAM candidates and got ambiguity when feature `SamConversionPerArgument` was enabled (Gradle case) because candidates for Java were duplicated #KT-35579 Fixed
This commit is contained in:
@@ -18730,6 +18730,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/SAMAfterSubstitutionKT.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameCandidatesFromKotlinAndJavaInOneScope.kt")
|
||||
public void testSameCandidatesFromKotlinAndJavaInOneScope() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleCorrect.kt")
|
||||
public void testSimpleCorrect() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/SimpleCorrect.kt");
|
||||
|
||||
Generated
+5
@@ -18720,6 +18720,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/SAMAfterSubstitutionKT.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameCandidatesFromKotlinAndJavaInOneScope.kt")
|
||||
public void testSameCandidatesFromKotlinAndJavaInOneScope() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleCorrect.kt")
|
||||
public void testSimpleCorrect() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/samConversions/SimpleCorrect.kt");
|
||||
|
||||
Reference in New Issue
Block a user