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


                                                                                                                                                           
                                                                                                  



                                                                                                                                                                 
t4425.scala:3: error: object X is not a case class, nor does it have an unapply/unapplySeq member
Note: def unapply(x: Int)(y: Option[Int]): None.type exists in object X, but it cannot be used as an extractor due to its second non-implicit parameter list
  42 match { case _ X _ => () }
                    ^
t4425.scala:8: error: object X is not a case class, nor does it have an unapply/unapplySeq member
Note: def unapply(x: Int)(y: Int): Some[(Int, Int)] exists in object X, but it cannot be used as an extractor due to its second non-implicit parameter list
  42 match { case _ X _ => () }
                    ^
t4425.scala:13: error: object X is not a case class, nor does it have an unapply/unapplySeq member
Note: def unapply(x: String)(y: String): Some[(Int, Int)] exists in object X, but it cannot be used as an extractor due to its second non-implicit parameter list
  "" match { case _ X _ => () }
                    ^
three errors found