JVM: keep call site markers when inlining lambdas into objects
A follow-up for KT-35006:
fun f() = foo {
bar()
}
inline fun foo(crossinline x: () -> Unit) = { x() }()
inline fun bar() = TODO()
does not provide the option to navigate to bar's call site at all.
This commit is contained in:
+8
@@ -73,4 +73,12 @@ _2Kt
|
||||
10#2:20
|
||||
15#2:22
|
||||
7#3:21
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$annotatedWith2$1
|
||||
*L
|
||||
6#1:19
|
||||
6#1:22
|
||||
*E
|
||||
@@ -94,3 +94,11 @@ _2Kt
|
||||
9#2:24
|
||||
9#3,2:22
|
||||
*E
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 1.kt
|
||||
test/_1Kt$test$1
|
||||
*L
|
||||
14#1,2:20
|
||||
14#1:24
|
||||
*E
|
||||
|
||||
Reference in New Issue
Block a user