Inject stub type variables of a different builder inference call properly

This commit is contained in:
Victor Petukhov
2021-05-21 15:00:26 +03:00
parent d486f7e188
commit 9fd1cbd2e7
4 changed files with 38 additions and 14 deletions
@@ -18,6 +18,11 @@ abstract class ExplicitTypeParameterConstraintPosition<T>(val typeArgument: T) :
override fun toString(): String = "TypeParameter $typeArgument"
}
abstract class InjectedAnotherStubTypeConstraintPosition<T>(private val builderInferenceLambdaOfInjectedStubType: T) : ConstraintPosition(),
OnlyInputTypeConstraintPosition {
override fun toString(): String = "Injected from $builderInferenceLambdaOfInjectedStubType builder inference call"
}
abstract class ExpectedTypeConstraintPosition<T>(val topLevelCall: T) : ConstraintPosition(), OnlyInputTypeConstraintPosition {
override fun toString(): String = "ExpectedType for call $topLevelCall"
}