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.
21 lines
362 B
Kotlin
Vendored
21 lines
362 B
Kotlin
Vendored
fun box(){
|
|
test(test("1", "2"),
|
|
fail())
|
|
|
|
test(fail(),
|
|
test("1", "2"))
|
|
}
|
|
|
|
public fun checkEquals(p1: String, p2: String) {
|
|
throw AssertionError("fail")
|
|
}
|
|
|
|
inline fun test(p: String, s: String) : String {
|
|
return "123"
|
|
}
|
|
|
|
fun fail() : String {
|
|
throw AssertionError("fail")
|
|
}
|
|
|
|
// 2 22 3 2 22 5 6 23 5 24 7 10 14 18 |