[NI] Handle dynamic types in type intersector
This commit is contained in:
@@ -38,6 +38,8 @@ fun intersectTypes(types: List<UnwrappedType>): UnwrappedType {
|
|||||||
when (it) {
|
when (it) {
|
||||||
is SimpleType -> it
|
is SimpleType -> it
|
||||||
is FlexibleType -> {
|
is FlexibleType -> {
|
||||||
|
if (it.isDynamic()) return it
|
||||||
|
|
||||||
hasFlexibleTypes = true
|
hasFlexibleTypes = true
|
||||||
it.lowerBound
|
it.lowerBound
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user