add one more condition to ErrorUtils.isError

approved by Andrey Breslav
This commit is contained in:
Stepan Koltsov
2011-12-12 19:20:05 +04:00
parent 099c6e3a28
commit 226d157705
@@ -203,7 +203,7 @@ public class ErrorUtils {
}
public static boolean isError(@NotNull DeclarationDescriptor candidate) {
return candidate.getContainingDeclaration() == getErrorClass() || candidate == ERROR_MODULE;
return candidate == getErrorClass() || candidate.getContainingDeclaration() == getErrorClass() || candidate == ERROR_MODULE;
}
private static class ErrorTypeImpl implements JetType {