summaryrefslogtreecommitdiff
path: root/test/files/neg/t2442/t2442.scala
blob: 4ca0889400ae5cc53dd4676c7e21c406be1db0a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
class Test {
  import MyEnum._

  def f(e: MyEnum) = e match {
    case ONE => println("one")
    case TWO => println("two")
    // missing case --> exhaustivity warning!
  }
}