Files
kotlin/compiler/testData/codegen/box/when/exhaustiveBoolean.kt
Pavel V. Talanov 4e0d2bc23c CompileTimeConstantUtils: use getConstant instead of evaluate
Hacky way to avoid passing builtins into this code
2015-07-21 20:52:43 +03:00

5 lines
83 B
Kotlin
Vendored

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