Files
kotlin/compiler/testData/codegen/box/functions/dataLocalVariable.kt
2018-06-09 19:15:38 +03:00

10 lines
281 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend gets support of Java class library
// IGNORE_BACKEND: JS, NATIVE
fun ok(b: Boolean) = if (b) "OK" else "Fail"
fun box(): String {
val data = java.util.Arrays.asList("foo", "bar")!!
return ok(data.contains("foo"))
}