make error type from error class

This commit is contained in:
Stepan Koltsov
2012-01-18 12:11:02 +04:00
parent 33aa343ba7
commit e2782e0766
@@ -288,6 +288,9 @@ public class TypeUtils {
@NotNull
public static JetType makeUnsubstitutedType(ClassDescriptor classDescriptor, JetScope unsubstitutedMemberScope) {
if (ErrorUtils.isError(classDescriptor)) {
return ErrorUtils.createErrorType("This is very helpful diagnostics message");
}
List<TypeProjection> arguments = getDefaultTypeProjections(classDescriptor.getTypeConstructor().getParameters());
return new JetTypeImpl(
Collections.<AnnotationDescriptor>emptyList(),