[NI] Add Nothing constraint if it was inferred from a call
This commit is contained in:
-1
@@ -106,7 +106,6 @@ class ConstraintInjector(val constraintIncorporator: ConstraintIncorporator, val
|
||||
|
||||
if (constraintType is SimpleType) {
|
||||
if (constraint.kind == UPPER && constraintType.isNullableAny()) return true // T <: Any?
|
||||
if (constraint.kind == LOWER && constraintType.isNothing()) return true // T >: Nothing
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user