When updating from 2.2.0 to 2.2.20-Beta1 IrTypeSys...
# compiler
p
When updating from 2.2.0 to 2.2.20-Beta1 IrTypeSystemContext::commonSuperType(List<IrType>) become unresolved reference. What is the alternative?
d
Copy code
fun commonSuperType(c: IrTypeSystemContext, types: List<IrType>): IrType {
    return with(c) {
        NewCommonSuperTypeCalculator.commonSuperType(types) as IrType
    }
}
Or this option, if
NewCommonSuperTypeCalculator.commonSuperType
doesn't have a context parameter
Copy code
fun commonSuperType(c: IrTypeSystemContext, types: List<IrType>): IrType {
    return with(NewCommonSuperTypeCalculator) {
        c.commonSuperType(types) as IrType
    }
}
I don't remember if context parameter refactoring got into Beta1
thank you color 1