supertype of error type should be an error type, not any
This commit is contained in:
@@ -47,6 +47,9 @@ public class CommonSupertypes {
|
||||
if (KotlinBuiltIns.getInstance().isNothingOrNullableNothing(type)) {
|
||||
iterator.remove();
|
||||
}
|
||||
if (ErrorUtils.isErrorType(type)) {
|
||||
return ErrorUtils.createErrorType("Supertype of error type " + type);
|
||||
}
|
||||
nullable |= type.isNullable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user