summaryrefslogblamecommitdiff
path: root/test/files/neg/t2442.check
blob: 9ff0b4466149faaa3b574873f3dc042b78299773 (plain) (tree)
1
2
3
4
5
6
7
8
                                                    


                                           
                                                     


                                          


                                                          
t2442.scala:4: warning: match may not be exhaustive.
It would fail on the following input: THREE
  def f(e: MyEnum) = e match {
                     ^
t2442.scala:11: warning: match may not be exhaustive.
It would fail on the following input: BLUE
  def g(e: MySecondEnum) = e match {
                           ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found