summaryrefslogtreecommitdiff
path: root/test/files/neg/switch.check
blob: e4730b64595a214a92a60684f71a8a3e124964b1 (plain) (blame)
1
2
3
4
5
6
7
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 {
                                       ^
two errors found