substitute on error class should be error

This commit is contained in:
Stepan Koltsov
2012-01-17 19:32:05 +04:00
parent b05c8ac3fd
commit 0dd7387f6c
@@ -96,6 +96,12 @@ public class ErrorUtils {
public Modality getModality() {
return Modality.OPEN;
}
@NotNull
@Override
public ClassDescriptor substitute(TypeSubstitutor substitutor) {
return ERROR_CLASS;
}
};
private static final Set<FunctionDescriptor> ERROR_FUNCTION_GROUP = Collections.singleton(createErrorFunction(0, Collections.<JetType>emptyList()));