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









                                                                       
t6011.scala:4: error: unreachable code
    case 'a' | 'c' => 1 // unreachable
                      ^
t6011.scala:10: error: unreachable code
    case 'b' | 'a'  => 1 // unreachable
                       ^
t6011.scala:8: error: could not emit switch for @switch annotated match
  def f2(ch: Char): Any = (ch: @annotation.switch) match {
                                ^
three errors found