7 lines
99 B
Scala
Raw Permalink Normal View History

2022-04-07 18:43:21 +02:00
object IfMatch {
if (true) { 1 } else { 2 } match {
case 1 => true
case 2 => false
}
}