Files
kotlin-fork/js/js.translator/testData/lineNumbers/memberFunWithDefaultParam.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

14 lines
210 B
Kotlin
Vendored

open class A {
open fun foo(x: Int = 23): Int = x
fun bar() = 42
}
class B : A() {
override fun foo(x: Int): Int {
return x * 2
}
}
// LINES: 1 2 2 2 2 2 2 2 2 2 4 4 4 * 7 7 8 10 9 9