Files
kotlin-fork/js/js.translator/testFiles/object/cases/objectInObject.kt
T
develar 39a135c824 JS backend: support object declaration in other declarations.
#KT-2696 fixed

(cherry picked from commits 8931d13, 627b100 and f6b8686)
2013-08-29 21:25:15 +04:00

23 lines
403 B
Kotlin

package foo
object A {
object query {val status = "complete"}
}
object B {
private val ov = "d"
object query {val status = "complete" + ov}
}
class C {
class object {
fun ov() = "d"
}
object query {val status = "complete" + ov()}
}
fun box() = A.query.status == "complete" && B.query.status == "completed"
// todo fix after KT-3868 will be fixed
// && C.query.status == "completed"