46b98a1e98
- 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
17 lines
268 B
Kotlin
Vendored
17 lines
268 B
Kotlin
Vendored
class A {
|
|
val z by
|
|
Delegate { 23 }
|
|
}
|
|
|
|
fun foo() {
|
|
println(A().z)
|
|
}
|
|
|
|
class Delegate(val f: () -> Int) {
|
|
operator fun getValue(thisRef: Any?, property: Any): Int {
|
|
return f()
|
|
}
|
|
}
|
|
|
|
// LINES: 1 2 3 * 2 2 3 3 3 3 * 6 8 7 7 10 10 11 13 12 12
|