NI: Fix callable references resolution when LHS is generic nested class
In case of null qualifier, we should not look into any static scope NB: factory::createCallableProcessor returns NoExplicitReceiver processor in case of null-receiver, that makes resolving the call in the test as `property(::key)` that matches to the property itself, thus leading to overload resolution ambiguity ^KT-35887 Fixed
This commit is contained in:
@@ -2635,6 +2635,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt12751.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35887.kt")
|
||||
public void testKt35887() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt35887.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35887_simple.kt")
|
||||
public void testKt35887_simple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt35887_simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8596.kt")
|
||||
public void testKt8596() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt8596.kt");
|
||||
|
||||
Generated
+10
@@ -2630,6 +2630,16 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt12751.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35887.kt")
|
||||
public void testKt35887() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt35887.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35887_simple.kt")
|
||||
public void testKt35887_simple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt35887_simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8596.kt")
|
||||
public void testKt8596() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/kt8596.kt");
|
||||
|
||||
Reference in New Issue
Block a user