Do not consider fake variables for objects in :: resolution

The main change is in
NewResolutionOldInference.ResolutionKind.CallableReference, where
createVariableProcessor creates a processor which no longer lists objects

 #KT-12322 Fixed
This commit is contained in:
Alexander Udalov
2016-06-28 15:31:30 +03:00
parent f290f1be68
commit b44f060ffa
9 changed files with 74 additions and 15 deletions
@@ -2291,6 +2291,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("noFakeDescriptorForObject.kt")
public void testNoFakeDescriptorForObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/noFakeDescriptorForObject.kt");
doTest(fileName);
}
@TestMetadata("overloads.kt")
public void testOverloads() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/overloads.kt");