Files
kotlin-fork/js/js.translator/testData/box/native/kt2323.kt
T
2016-10-03 17:25:26 +03:00

12 lines
276 B
Kotlin
Vendored

package foo
@native
val classes: Map<String, Any> = noImpl
@native
val classesMutable: HashMap<String, String> = noImpl
fun box(): String {
classesMutable.set("why", "?")
return if (classes.get("answer") == 42 && classesMutable.get("why") == "?") "OK" else "fail"
}