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:
Andrey Breslav
2011-09-02 17:02:31 +04:00
parent 3aa9b9c3ef
commit 30304ed1b1
@@ -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);
}