Analysis API: fix PsiType creation for type parameter type with flexible upper bound

This commit is contained in:
Ilya Kirillov
2021-09-21 16:34:21 +02:00
parent 03c352c11e
commit 0c7728f64a
6 changed files with 95 additions and 0 deletions
@@ -128,6 +128,10 @@ object AbstractTypeMapper {
}
}
type.isFlexible() -> {
return mapType(context, type.upperBoundIfFlexible(), mode, sw)
}
else -> throw UnsupportedOperationException("Unknown type $type")
}
}