Files
kotlin-fork/js/js.translator/testData/native/cases/classObject.kt
T
2014-03-11 20:04:00 +04:00

20 lines
302 B
Kotlin

package foo
import js.*
native
class A(val c: Int) {
native
class object {
val g: Int = js.noImpl
val c: String = js.noImpl
}
}
fun box(): Boolean {
if (A.g != 3) return false
if (A.c != "hoooray") return false
if (A(2).c != 2) return false
return true
}