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

                                                                         
                             

                                                                         
                                     

                                                                         
                                        
                  
switch.scala:28: error: could not emit switch for @switch annotated match
  def fail1(c: Char) = (c: @switch) match {
                            ^
switch.scala:38: error: could not emit switch for @switch annotated match
  def fail2(c: Char) = (c: @switch @unchecked) match {
                                    ^
switch.scala:45: error: could not emit switch for @switch annotated match
  def fail3(c: Char) = (c: @unchecked @switch) match {
                                       ^
three errors found