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.
44 lines
448 B
Kotlin
Vendored
44 lines
448 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package zzz
|
|
|
|
public class A(val a: Int, val b: Int)
|
|
|
|
operator inline fun A.component1() = a
|
|
|
|
operator inline fun A.component2() = b
|
|
|
|
// FILE: 2.kt
|
|
|
|
import zzz.*
|
|
|
|
fun box(): String {
|
|
var (p, l) = A(1, 11)
|
|
|
|
return if (p == 1 && l == 11) "OK" else "fail: $p"
|
|
}
|
|
|
|
// FILE: 1.smap
|
|
|
|
// FILE: 2.smap
|
|
|
|
SMAP
|
|
2.kt
|
|
Kotlin
|
|
*S Kotlin
|
|
*F
|
|
+ 1 2.kt
|
|
_2Kt
|
|
+ 2 1.kt
|
|
zzz/_1Kt
|
|
*L
|
|
1#1,11:1
|
|
7#2,3:12
|
|
*E
|
|
*S KotlinDebug
|
|
*F
|
|
+ 1 2.kt
|
|
_2Kt
|
|
*L
|
|
6#1,3:12
|
|
*E |