[NI] Fix composite substitution for stubbed type in builder-inference
#KT-32038 Fixed
This commit is contained in:
+3
-1
@@ -217,6 +217,8 @@ class CoroutineInferenceSession(
|
||||
|
||||
class ComposedSubstitutor(val left: NewTypeSubstitutor, val right: NewTypeSubstitutor) : NewTypeSubstitutor {
|
||||
override fun substituteNotNullTypeWithConstructor(constructor: TypeConstructor): UnwrappedType? {
|
||||
return left.safeSubstitute(right.substituteNotNullTypeWithConstructor(constructor) ?: return null)
|
||||
return left.substituteNotNullTypeWithConstructor(
|
||||
right.substituteNotNullTypeWithConstructor(constructor)?.constructor ?: constructor
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user