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

                                                                               
                              
                         

                                                       
                                                        
       
                
bug960.scala:18: error: ambiguous reference to overloaded definition,
both method unapply in object List of type [a](xs: List[a])Option[Null]
and  method unapply in object List of type [a](xs: List[a])Option[(a, List[a])]
match argument types (List[a])
    case List(x, xs) => 7
         ^
bug960.scala:12: error: method unapply is defined twice
  def unapply[a](xs: List[a]): Option[Null] = xs match {
      ^
two errors found