Always complete calls not related to the builder inference

^KT-47830 Fixed
This commit is contained in:
Victor Petukhov
2021-08-03 12:24:37 +03:00
committed by teamcityserver
parent dc8dbad0bc
commit cf3bd016be
6 changed files with 23 additions and 26 deletions
@@ -11,12 +11,12 @@ fun f1(): Sequence<List<Int>> = sequence {
}
fun f2(): Sequence<List<Int>> = sequence {
select(yield(myEmptyList()), yield(myEmptyList()))
select(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>yield<!>(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>myEmptyList<!>()), yield(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>myEmptyList<!>()))
}
fun f3(): Sequence<List<Int>> = sequence {
if (true) yield(myEmptyList()) // [NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER] Not enough information to infer type variable T
else yield(myEmptyList()) // [NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER] Not enough information to infer type variable T
if (true) <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>yield<!>(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>myEmptyList<!>()) // [NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER] Not enough information to infer type variable T
else yield(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>myEmptyList<!>()) // [NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER] Not enough information to infer type variable T
}
fun box(): String {