Files
kotlin/compiler/testData/codegen/box/functions/dataLocalVariable.kt
2019-11-19 11:00:09 +03:00

10 lines
279 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TODO: Enable when JS backend 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"))
}