Split stub types into stub type for subtyping and for builder inference and use them in the proper way

This commit is contained in:
Victor Petukhov
2021-05-11 17:14:05 +03:00
parent 703a353d2e
commit 5a11450d77
18 changed files with 97 additions and 101 deletions
@@ -497,7 +497,7 @@ class NewConstraintSystemImpl(
override fun bindingStubsForPostponedVariables(): Map<TypeVariableMarker, StubTypeMarker> {
checkState(State.BUILDING, State.COMPLETION)
// TODO: SUB
return storage.postponedTypeVariables.associateWith { createStubType(it) }
return storage.postponedTypeVariables.associateWith { createStubTypeForBuilderInference(it) }
}
override fun currentStorage(): ConstraintStorage {