Discriminate header class in resolution from sources in AbstractLazyMemberScope
Similarly to getFirstClassifierDiscriminateHeaders, we select the first non-header class if possible, otherwise we select just the first class. This makes sure that a reference will never be resolved to a header class if the corresponding impl class is present. Note that overall the issue may not be fixed yet, because there are other scopes where header classes are not yet discriminated (LazyImportScope, DeserializedMemberScope). However, at this point I cannot reproduce this problem with these other scopes #KT-15521 Fixed
This commit is contained in:
+6
@@ -42,6 +42,12 @@ public class MultiPlatformIntegrationTestGenerated extends AbstractMultiPlatform
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("createImplClassInPlatformModule")
|
||||
public void testCreateImplClassInPlatformModule() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/multiplatform/createImplClassInPlatformModule/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("genericDeclarations")
|
||||
public void testGenericDeclarations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/multiplatform/genericDeclarations/");
|
||||
|
||||
Reference in New Issue
Block a user