FIR checker: fix position strategy for UNRESOLVED_LABEL
This commit is contained in:
committed by
Ivan Kochurkin
parent
45d31fdba2
commit
bcf6202863
@@ -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<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user