[NI] Capture from supertypes of type parameter.
This works by accident in OI, so this should be supported by new inference.
This commit is contained in:
@@ -391,6 +391,9 @@ object NullabilityChecker {
|
||||
|
||||
}
|
||||
|
||||
fun UnwrappedType.hasSupertypeWithGivenTypeConstructor(typeConstructor: TypeConstructor) =
|
||||
TypeCheckerContext(false).anySupertype(lowerIfFlexible(), { it.constructor == typeConstructor }, { SupertypesPolicy.LowerIfFlexible })
|
||||
|
||||
/**
|
||||
* ClassType means that type constructor for this type is type for real class or interface
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user