[NI] Make error CST when any of included types is error
`ErrorType` is not subtype of `Any`, so any set of types containing an `ErrorType` has no common super constructors. ^KT-36745 Fixed
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ object NewCommonSuperTypeCalculator {
|
||||
contextStubTypesEqualToAnything: AbstractTypeCheckerContext,
|
||||
contextStubTypesNotEqual: AbstractTypeCheckerContext
|
||||
): SimpleTypeMarker {
|
||||
if (types.all { it is ErrorType }) {
|
||||
if (types.any { it is ErrorType }) {
|
||||
return ErrorUtils.createErrorType("CST(${types.joinToString()}")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user