JS: fix translation of extension properties
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user