Fix builder inference tests

This commit is contained in:
Victor Petukhov
2021-05-24 15:02:08 +03:00
parent be22078bd1
commit 758eb8f851
46 changed files with 1233 additions and 326 deletions
@@ -25,7 +25,7 @@ val member = build {
}
val memberWithoutAnn = wrongBuild {
add(42)
add(<!ARGUMENT_TYPE_MISMATCH!>42<!>)
}
val extension = build {
@@ -20,7 +20,7 @@ suspend fun yield() {}
fun test() {
builder {
send(<!ARGUMENT_TYPE_MISMATCH, NEW_INFERENCE_ERROR!>run {
send(<!ARGUMENT_TYPE_MISMATCH{LT}!>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!>yield<!>("")
this@with.<!UNRESOLVED_REFERENCE{LT}!>yield<!>("")
yield2("")
this@with.<!INAPPLICABLE_CANDIDATE!>yield2<!>("")
this@with.<!INAPPLICABLE_CANDIDATE{LT}!>yield2<!>("")
}
}
}