summaryrefslogblamecommitdiff
path: root/test/files/neg/sealed-java-enums.check
blob: a3c39ec5cdaca24e8f79307b696481c608ca23a1 (plain) (tree)
1
2
3
4
5
6
7
                                                                
                                                                         

                                     

                                                          
               
sealed-java-enums.scala:5: warning: match may not be exhaustive.
It would fail on the following inputs: BLOCKED, TERMINATED, TIMED_WAITING
  def f(state: State) = state match {
                        ^
error: No warnings can be incurred under -Xfatal-warnings.
one warning found
one error found