[FIR2IR] Count IrErrorTypes as not equal for purpose of overriding
This prevents possible type checking exceptions
This commit is contained in:
@@ -381,6 +381,7 @@ fun isOverriding(
|
||||
): Boolean {
|
||||
val typeCheckerContext = IrTypeCheckerContext(irBuiltIns) as AbstractTypeCheckerContext
|
||||
fun equalTypes(first: IrType, second: IrType): Boolean {
|
||||
if (first is IrErrorType || second is IrErrorType) return false
|
||||
return AbstractTypeChecker.equalTypes(
|
||||
typeCheckerContext, first, second
|
||||
) ||
|
||||
|
||||
Reference in New Issue
Block a user