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








                                                                                                        
t8731.scala:5: warning: matches with two cases or fewer are emitted using if-then-else instead of switch
  def f(x: Int) = (x: @annotation.switch) match {
                       ^
t8731.scala:10: warning: could not emit switch for @switch annotated match
  def g(x: Int) = (x: @annotation.switch) match {
                       ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found