[NI] Handle dynamic types in type intersector

This commit is contained in:
Mikhail Zarechenskiy
2017-07-04 12:18:21 +03:00
parent 0d464f06d1
commit 21c5187c9e
@@ -38,6 +38,8 @@ fun intersectTypes(types: List<UnwrappedType>): UnwrappedType {
when (it) {
is SimpleType -> it
is FlexibleType -> {
if (it.isDynamic()) return it
hasFlexibleTypes = true
it.lowerBound
}