[NI] Add Nothing constraint if it was inferred from a call

This commit is contained in:
Mikhail Zarechenskiy
2019-03-25 11:09:40 +03:00
parent ca894a6a71
commit 3eda7c462b
9 changed files with 14 additions and 15 deletions
@@ -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