PHondogo
10/15/2024, 6:36 AMdmitriy.novozhilov
10/15/2024, 6:40 AM?
was removed from the return type during automated refactoring
In fact the whole implementation of findCommonIntegerLiteralTypesSuperType
in IrTypeSystemContext
is incorrect, as it always should return null
as there is no ILT in the IR type systemdmitriy.novozhilov
10/15/2024, 6:41 AMPHondogo
10/15/2024, 6:43 AMoverride fun findCommonIntegerLiteralTypesSuperType(explicitSupertypes: List<RigidTypeMarker>): IrSimpleType {
return nullable(null as IrSimpleType?)
}
private fun <T> nullable(v: T?): T {
@Suppress("UNCHECKED_CAST")
return v as T
}
dmitriy.novozhilov
10/15/2024, 11:50 AM