Files
kotlin-fork/compiler/testData/codegen/box/when/exhaustiveBoolean.kt
T
2021-11-20 03:37:31 +03:00

8 lines
229 B
Kotlin
Vendored

// LANGUAGE: -ProhibitSimplificationOfNonTrivialConstBooleanExpressions
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: don't support legacy feature
fun box() : String = when (true) {
((true)) -> "OK"
(1 == 2) -> "Not ok"
}