summaryrefslogblamecommitdiff
path: root/test/files/neg/t1878.check
blob: 5814375515cecb4b2d7ae6eeb224437fefc91ce2 (plain) (tree)
1
2
3
4
5
6
7
                                                                                                     
                                                    
                                        
                                                                                                     
                                                              

                   
t1878.scala:3: error: bad simple pattern: bad use of _* (a sequence pattern must be the last pattern)
  val err1 = "" match { case Seq(f @ _*, ',') => f }
                                       ^
t1878.scala:9: error: bad simple pattern: bad use of _* (a sequence pattern must be the last pattern)
  val List(List(_*, arg2), _) = List(List(1,2,3), List(4,5,6))
                  ^
two errors found