7 lines
99 B
Scala
7 lines
99 B
Scala
object IfMatch {
|
|
if (true) { 1 } else { 2 } match {
|
|
case 1 => true
|
|
case 2 => false
|
|
}
|
|
}
|