FIR: Update test data (NEW_INFERENCE_ERROR)

Though these diagnostics look correct (the calls or constraint
systems indeed contain errors), more precise diagnostic kinds should be
chosen later.
This commit is contained in:
Denis.Zharkov
2021-04-28 10:58:42 +03:00
committed by teamcityserver
parent 010a0c6cdc
commit da3233c47d
19 changed files with 58 additions and 45 deletions
@@ -20,7 +20,7 @@ suspend fun yield() {}
fun test() {
builder {
send(<!ARGUMENT_TYPE_MISMATCH!>run {
send(<!ARGUMENT_TYPE_MISMATCH, NEW_INFERENCE_ERROR!>run {
yield() // No error but `yield` is not inside "suspension" context actually
}<!>)
}
@@ -19,6 +19,6 @@ val test1 = generate {
yield(<!NO_COMPANION_OBJECT!>A<!>)
}
val test2: Int = <!INITIALIZER_TYPE_MISMATCH!>generate {
val test2: Int = <!INITIALIZER_TYPE_MISMATCH, NEW_INFERENCE_ERROR!>generate {
yield(A())
}<!>