9d21800d8f
If `mapLineNumber` was called in non-monotonic order, e.g. N then N+2 then N+1, the first two calls created a range that spans [N; N+2] but the third call did not reuse it.
92 lines
894 B
Kotlin
Vendored
92 lines
894 B
Kotlin
Vendored
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
|
// FILE: 1.kt
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
|
|
|
|
package test
|
|
inline fun inlineFun(capturedParam: String, crossinline lambda: () -> String = { capturedParam }): String {
|
|
return {
|
|
lambda()
|
|
}()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
}
|
|
|
|
// FILE: 1.smap
|
|
//TODO maybe do smth with default method body mapping
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt
|
|
*L
|
|
1#1,13:1
|
|
*E
|
|
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt$inlineFun$2
|
|
*L
|
|
1#1,13:1
|
|
*E
|
|
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt$inlineFun$1
|
|
*L
|
|
1#1,13:1
|
|
*E
|
|
|
|
// FILE: 2.smap
|
|
|
|
SMAP
|
|
2.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 2.kt
|
|
_2Kt
|
|
+ 2 1.kt
|
|
test/_1Kt
|
|
*L
|
|
1#1,9:1
|
|
7#2,2:10
|
|
*E
|
|
*S KotlinDebug
|
|
*F
|
|
+ 1 2.kt
|
|
_2Kt
|
|
*L
|
|
6#1,2:10
|
|
*E
|
|
|
|
SMAP
|
|
1.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 1.kt
|
|
test/_1Kt$inlineFun$2
|
|
+ 2 1.kt
|
|
test/_1Kt$inlineFun$1
|
|
*L
|
|
1#1,13:1
|
|
7#2:14
|
|
*E
|