JS: fix translation of extension properties

This commit is contained in:
Alexey Andreev
2016-10-24 18:18:43 +03:00
parent 0f87703c87
commit cacd917350
5 changed files with 37 additions and 12 deletions
@@ -0,0 +1,14 @@
// MODULE: lib
// FILE: lib.kt
class A {
fun ok() = "OK"
}
val A.foo: String
get() = ok()
// MODULE: main(lib)
// FILE: main.kt
fun box() = A().foo
@@ -0,0 +1,8 @@
class A {
fun result() = "OK"
}
private val A.foo: String
get() = result()
fun box() = A().foo