Error types are not imported as supertypes for member resolution
class C(x : Int) : Base(x /*parameter*/), Base1 by Base1(x) {
val xx : Int // <- this Int used to be resolved to ERROR_CLASS
}
This commit is contained in:
@@ -120,7 +120,9 @@ public class MutableClassDescriptor extends MutableDeclarationDescriptor impleme
|
||||
}
|
||||
|
||||
public void addSupertype(@NotNull JetType supertype) {
|
||||
scopeForMemberLookup.importScope(supertype.getMemberScope());
|
||||
if (!ErrorUtils.isErrorType(supertype)) {
|
||||
scopeForMemberLookup.importScope(supertype.getMemberScope());
|
||||
}
|
||||
supertypes.add(supertype);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user