Files
kotlin-fork/compiler/testData/codegen/box/when/exhaustiveBoolean.kt
T
2018-06-09 19:15:38 +03:00

6 lines
108 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
fun box() : String = when (true) {
((true)) -> "OK"
(1 == 2) -> "Not ok"
}