Complete block expressions to substitute stub type variables into last callable references there

This commit is contained in:
Victor Petukhov
2021-05-21 15:24:55 +03:00
parent 472ab09511
commit 84bd580f92
2 changed files with 25 additions and 4 deletions
@@ -375,4 +375,5 @@ private fun NewCapturedType.unCaptureTopLevelType(): UnwrappedType {
return constructor.projection.type.unwrap()
}
fun KotlinType.shouldBeUpdated() = contains { it is StubTypeForBuilderInference || it.constructor is TypeVariableTypeConstructorMarker || it.isError }
fun KotlinType?.shouldBeUpdated() =
this == null || contains { it is StubTypeForBuilderInference || it.constructor is TypeVariableTypeConstructorMarker || it.isError }