FIR checker: fix position strategy for UNRESOLVED_LABEL

This commit is contained in:
Tianyu Geng
2021-06-25 13:16:58 -07:00
committed by Ivan Kochurkin
parent 45d31fdba2
commit bcf6202863
24 changed files with 58 additions and 35 deletions
@@ -1,17 +1,17 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
val funLit = lambda@ fun String.() {
val d1 = <!UNRESOLVED_LABEL!>this@lambda<!>
val d1 = this<!UNRESOLVED_LABEL!>@lambda<!>
}
fun test() {
val funLit = lambda@ fun String.(): <!UNRESOLVED_LABEL!>String<!> {
return <!UNRESOLVED_LABEL!>this@lambda<!>
return this<!UNRESOLVED_LABEL!>@lambda<!>
}
}
fun lambda() {
val funLit = lambda@ fun String.(): <!UNRESOLVED_LABEL!>String<!> {
return <!UNRESOLVED_LABEL!>this@lambda<!>
return this<!UNRESOLVED_LABEL!>@lambda<!>
}
}
}