Files
kotlin/compiler/testData/codegen/box/functions/dataLocalVariable.kt
2016-02-20 15:19:29 +03:00

9 lines
248 B
Kotlin
Vendored

// TODO: Enable when JS backed gets support of Java class library
// TARGET_BACKEND: JVM
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"))
}