diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java index edcbfe55f4ca422a45243fe1d695cbd579c69784..bbcef8906f7bec4bf9838b69ce36219e5bf94c05 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java @@ -239,7 +239,8 @@ public class ErrorUtils { public static boolean isErrorType(@NotNull JetType type) { return type != TypeUtils.NO_EXPECTED_TYPE && !(type instanceof NamespaceType) && ( - (type instanceof DeferredType && ((DeferredType) type).getActualType() == null) || + (type instanceof DeferredType && (((DeferredType) type).getActualType() == null + || isErrorType(((DeferredType) type).getActualType()))) || type instanceof ErrorTypeImpl || isError(type.getConstructor()) );