mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
13 lines
209 B
Kotlin
Vendored
13 lines
209 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS
|
|
|
|
|
|
enum class Test(vararg xs: Int) {
|
|
OK {
|
|
fun foo() {}
|
|
};
|
|
val xs = xs
|
|
}
|
|
|
|
fun box(): String =
|
|
if (Test.OK.xs.size == 0) "OK" else "Fail" |