[NI] Make it possible to use nullable non-fixed type

This commit is contained in:
Mikhail Zarechenskiy
2018-04-25 12:07:29 +03:00
parent 9209222112
commit 59c4b9ad2f
2 changed files with 18 additions and 11 deletions
@@ -275,7 +275,7 @@ class NewConstraintSystemImpl(
override fun bindingStubsForPostponedVariables(): Map<NewTypeVariable, NonFixedType> {
checkState(State.BUILDING, State.COMPLETION)
return storage.postponedTypeVariables.associate { it to NonFixedType(it.freshTypeConstructor) }
return storage.postponedTypeVariables.associate { it to NonFixedType(it.freshTypeConstructor, it.defaultType.isMarkedNullable) }
}
override fun copyCurrentStorage(): ConstraintStorage {