Files
kotlin-fork/compiler/testData/codegen/box/when/exhaustiveBoolean.kt
T

7 lines
185 B
Kotlin
Vendored

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