PHondogo
07/14/2025, 6:58 AMdmitriy.novozhilov
07/14/2025, 7:02 AMfun commonSuperType(c: IrTypeSystemContext, types: List<IrType>): IrType {
return with(c) {
NewCommonSuperTypeCalculator.commonSuperType(types) as IrType
}
}
dmitriy.novozhilov
07/14/2025, 7:04 AMNewCommonSuperTypeCalculator.commonSuperType
doesn't have a context parameter
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