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