Fix builder inference tests
This commit is contained in:
+2
-2
@@ -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
|
||||
}<!>)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user