Find Usages: Fix processing of label references in 'return' expressions
#KT-7516 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
fun <R> <caret>foo(f: () -> R) = f()
|
||||
|
||||
fun test() {
|
||||
foo {
|
||||
return@foo false
|
||||
}
|
||||
|
||||
foo(fun(): Boolean { return@foo false })
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Function call 11 foo(fun(): Boolean { return@foo false })
|
||||
Function call 7 foo {
|
||||
Unclassified usage 11 foo(fun(): Boolean { return@foo false })
|
||||
Unclassified usage 8 return@foo false
|
||||
Reference in New Issue
Block a user