Fix new warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-09-09 16:52:58 +03:00
parent 7a7672b0de
commit 70e8d23d6b
11 changed files with 20 additions and 3 deletions
@@ -368,13 +368,11 @@ fun FlexibleType.unCapture(): FlexibleType {
val unCapturedLowerBound = when (val unCaptured = lowerBound.unCapture()) {
is SimpleType -> unCaptured
is FlexibleType -> unCaptured.lowerBound
else -> lowerBound
}
val unCapturedUpperBound = when (val unCaptured = upperBound.unCapture()) {
is SimpleType -> unCaptured
is FlexibleType -> unCaptured.upperBound
else -> upperBound
}
return FlexibleTypeImpl(unCapturedLowerBound, unCapturedUpperBound)