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

18 lines
356 B
Kotlin
Vendored

import kotlin.reflect.*
open class A {
var x: String by
B()
}
class B {
operator fun getValue(thisRef: Any?, property: KProperty<*>): String {
return "OK"
}
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {
println(value)
}
}
// LINES: 3 4 5 * 4 4 4 * 8 9 11 10 10 13 15 14 14