[NI] Do not incorporate constraints that are needed only for nullability
This commit is contained in:
+3
-1
@@ -82,7 +82,9 @@ class ConstraintInjector(
|
||||
|
||||
// it is important, that we add constraint here(not inside TypeCheckerContext), because inside incorporation we read constraints
|
||||
constraints.addConstraint(constraint)?.let {
|
||||
constraintIncorporator.incorporate(typeCheckerContext, typeVariable, it)
|
||||
if (!constraint.isNullabilityConstraint) {
|
||||
constraintIncorporator.incorporate(typeCheckerContext, typeVariable, it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user