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





                                       



                                                                                 

                                       
                 
t6048.scala:3: error: unreachable code
    case _ if false => x // unreachable
                       ^
t6048.scala:8: error: unreachable code
    case _ if false => x // unreachable
                       ^
t6048.scala:13: error: patterns after a variable pattern cannot match (SLS 8.1.1)
    case _ => x
         ^
t6048.scala:14: error: unreachable code due to variable pattern on line 13
    case 5 if true  => x // unreachable
                       ^
four errors found