Fix builder inference tests

This commit is contained in:
Victor Petukhov
2021-05-26 17:54:28 +03:00
parent 4a767c597e
commit bd7fb56a24
25 changed files with 78 additions and 124 deletions
@@ -20,8 +20,8 @@ suspend fun yield() {}
fun test() {
builder {
send(<!ARGUMENT_TYPE_MISMATCH{LT}!>run {
send(run {
yield() // No error but `yield` is not inside "suspension" context actually
}<!>)
})
}
}
@@ -84,10 +84,10 @@ fun test() {
with(this) {
yield("")
this@with.<!UNRESOLVED_REFERENCE{LT}!>yield<!>("")
this@with.yield("")
yield2("")
this@with.<!INAPPLICABLE_CANDIDATE{LT}!>yield2<!>("")
this@with.yield2("")
}
}
}