Fir2Ir: handle intersection types in FirJvmMangleComputer
This commit is contained in:
committed by
Alexander Udalov
parent
12533a383e
commit
9fb1a901cf
+4
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user