mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
9 lines
248 B
Kotlin
Vendored
9 lines
248 B
Kotlin
Vendored
// TODO: Enable when JS backend gets support of Java class library
|
|
// IGNORE_BACKEND: JS
|
|
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"))
|
|
}
|