Files
kotlin-fork/compiler/testData/codegen/box/when/exhaustiveBoolean.kt
T
2019-11-19 11:00:09 +03:00

6 lines
113 B
Kotlin
Vendored

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