[NI] Fix isNullableType for definitely not null type parameter
Consider type parameter with nullable bound not null if it is inside of a definitely not null type.
This commit is contained in:
@@ -295,6 +295,9 @@ public class TypeUtils {
|
||||
if (FlexibleTypesKt.isFlexible(type) && isNullableType(FlexibleTypesKt.asFlexibleType(type).getUpperBound())) {
|
||||
return true;
|
||||
}
|
||||
if (SpecialTypesKt.isDefinitelyNotNullType(type)) {
|
||||
return false;
|
||||
}
|
||||
if (isTypeParameter(type)) {
|
||||
return hasNullableSuperType(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user