aboutsummaryrefslogblamecommitdiff
path: root/tests/patmat/t3111.scala
blob: 8f2bc5a273a96dc2ca955aac13a251bf871c9661 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                               
object Test {
  val bool: Boolean = false

  bool match {
    case true => "true!"
  }

  bool match {
    case true => "true!"
    case false => "false!"
    case _ => "cats and dogs living together... mass hysteria!"
  }
}