Files
kotlin-fork/js/js.translator/testData/lineNumbers/inlineMultiModule/simple.kt
T
Roman Artemev 46b98a1e98 [JS BE] Make sourceMap generation more precise
- Don't produce mapping for closing bracket in case of expressionBody
 - Map Kt*Function declaration into corresponding js fun declaration
 - Update test data & add new test
2019-07-24 18:56:40 +03:00

24 lines
321 B
Kotlin
Vendored

// MODULE: lib
// FILE: lib.kt
package pkg1
inline fun foo(x: String) {
println("foo1($x);")
println("foo2($x);")
}
// LINES: 6 6 6 6 6 9 7 7 8 8
// MODULE: main(lib)
// FILE: main.kt
package pkg2
import pkg1.*
fun box() {
foo("23")
foo("42")
}
// LINES: 6 19 22 7 7 20 7 8 8 20 8 7 7 21 7 8 8 21 8