When type reference is unresolved, type of expression is considered error.

This commit is contained in:
Evgeny Gerashchenko
2012-05-03 00:43:18 +04:00
parent c0b78cd635
commit c794435640
@@ -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())
);