Fix ambiguity on callable reference for expect members
Expect members should always lose in resolution to non-expect members, be it simple calls or callable references. Note that there should be exactly one actual member for each expect member in correct code, so both ways to check for expect vs non-expect are correct: either before signature comparison, or after. #KT-20903 Fixed
This commit is contained in:
@@ -14355,6 +14355,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("callableReferenceOnExpectFun.kt")
|
||||
public void testCallableReferenceOnExpectFun() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multiplatform/topLevelFun/callableReferenceOnExpectFun.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingHeaderDeclarations.kt")
|
||||
public void testConflictingHeaderDeclarations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multiplatform/topLevelFun/conflictingHeaderDeclarations.kt");
|
||||
|
||||
+6
@@ -14355,6 +14355,12 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("callableReferenceOnExpectFun.kt")
|
||||
public void testCallableReferenceOnExpectFun() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multiplatform/topLevelFun/callableReferenceOnExpectFun.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingHeaderDeclarations.kt")
|
||||
public void testConflictingHeaderDeclarations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multiplatform/topLevelFun/conflictingHeaderDeclarations.kt");
|
||||
|
||||
Reference in New Issue
Block a user