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


                                                          
switch.scala:38: warning: could not emit switch for @switch annotated match
  def fail2(c: Char) = (c: @switch @unchecked) match {
                                    ^
switch.scala:45: warning: could not emit switch for @switch annotated match
  def fail3(c: Char) = (c: @unchecked @switch) match {
                                       ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found