Fir2Ir: handle intersection types in FirJvmMangleComputer

This commit is contained in:
Georgy Bronnikov
2022-04-23 12:39:25 +03:00
committed by Alexander Udalov
parent 12533a383e
commit 9fb1a901cf
@@ -280,6 +280,10 @@ open class FirJvmMangleComputer(
is ConeCapturedType -> {
mangleType(tBuilder, type.lowerType ?: type.constructor.supertypes!!.first())
}
is ConeIntersectionType -> {
// TODO: add intersectionTypeApproximation
mangleType(tBuilder, type.intersectedTypes.first())
}
else -> error("Unexpected type $type")
}
}