Fix JS source maps for return statement of inlined function
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
inline fun foo(x: Int): String {
|
||||
if (x == 1) {
|
||||
return "a" +
|
||||
x
|
||||
}
|
||||
|
||||
print("!")
|
||||
|
||||
if (x == 2) {
|
||||
return "b" +
|
||||
x
|
||||
}
|
||||
|
||||
println("#")
|
||||
|
||||
return x.toString()
|
||||
}
|
||||
|
||||
fun bar(x: Int) {
|
||||
println(foo(x + 1))
|
||||
println("%")
|
||||
}
|
||||
|
||||
// LINES: 2 3 4 7 9 10 11 14 16 * 20 * 2 3 3 7 9 10 10 14 16 20 21
|
||||
Reference in New Issue
Block a user