2022-04-07 18:43:21 +02:00

13 lines
124 B
Scala

object IfMatch {
(if(true) {
1
} else {
2
}) match {
case 1 =>
true
case 2 =>
false
}
}