mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
279 B
Kotlin
Vendored
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"))
|
|
}
|