blob: 945e12984892a57f479130d72557438d5b34fb6f [file] [log] [blame]
enum class Test {
A,
B,
C
}
fun checkA(a: Test) = when(a) {
Test.B -> false
Test.A -> true
else -> false
}
fun box() : String {
if(!checkA(Test.A)) return "fail"
if( checkA(Test.C)) return "fail"
if( checkA(Test.B)) return "fail"
return "OK"
}