Fix builder inference tests
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ val member = build {
|
||||
}
|
||||
|
||||
val memberWithoutAnn = wrongBuild {
|
||||
add(42)
|
||||
add(<!ARGUMENT_TYPE_MISMATCH!>42<!>)
|
||||
}
|
||||
|
||||
val extension = build {
|
||||
|
||||
+1
-1
@@ -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
|
||||
}<!>)
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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<!>("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user