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

                                         
                                               

                                                                                 
                                                           

                                          
                                                           

                                                   
bug997.scala:7: error: wrong number of arguments for object Foo of type Foo.type
"x" match { case Foo(a) => Console.println(a) }
                    ^
bug997.scala:7: error: not found: value a
"x" match { case Foo(a) => Console.println(a) }
                                           ^
bug997.scala:13: error: wrong number of arguments for object Foo of type Foo.type
"x" match { case Foo(a, b, c) => Console.println((a,b,c)) }
                    ^
bug997.scala:13: error: not found: value a
"x" match { case Foo(a, b, c) => Console.println((a,b,c)) }
                                                  ^
four errors found