Files
kotlin-fork/compiler/testData/lineNumber/custom/smapInlineAsInlineArgument.kt
T
pyos 9d21800d8f JVM: fix SMAP range extension logic
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.
2020-03-31 16:06:57 +02:00

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