mjuric
2011-10-28 21:12:56 UTC
I am very new to Scala and maybe could someone explain why I get
"cannot resolve overloaded unapply"-error in this:
case class Element (
id: String
)
object Element {
def unapply(id: String): Option[Element] = Some(Element(id))
}
Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java
1.6.0_26)
"cannot resolve overloaded unapply"-error in this:
case class Element (
id: String
)
object Element {
def unapply(id: String): Option[Element] = Some(Element(id))
}
Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java
1.6.0_26)