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

                                                                               
                              
                         
          


                                                       
                                                     
                                                        
       
                 
t960.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
         ^
t960.scala:22: error: cannot resolve overloaded unapply
    case List(x, xs) => 7
         ^
t960.scala:12: error: method unapply is defined twice
  def unapply[a](xs: List[a]): Option[Null] = xs match {
      ^
three errors found