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:
pyos
2020-04-01 09:33:47 +02:00
committed by max-kammerer
parent 5feadd56ef
commit 86b28b95ca
8 changed files with 29 additions and 23 deletions
@@ -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