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:
Denis Zharkov
2020-01-14 18:50:17 +03:00
parent 4ff8acf5d7
commit c48539feb3
8 changed files with 80 additions and 2 deletions
@@ -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");
@@ -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");