blob: 603b1cb032169356abce7aa7550e3aee7280d556 (
plain) (
tree)
|
|
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 in t960.scala
def unapply[a](xs: List[a]): Option[Null] = xs match {
^
three errors found
|