фигня какая-то со скалой
Jun. 15th, 2008 07:33 amdef eee(a:Any,b:Any):Boolean = (a eq b)
В чём тут проблема?
found : Any
required: ?{val eq: ?}
Note that implicit conversions are not applicable because they are ambiguous:
both method any2stringadd in object Predef of type (Any)scala.runtime.StringAdd
and method any2ArrowAssoc in object Predef of type [A](A)ArrowAssoc[A]
are possible conversion functions from Any to ?{val eq: ?}
def eee(a:Any,b:Any):Boolean = (a eq b)
^
В чём тут проблема?
found : Any
required: ?{val eq: ?}
Note that implicit conversions are not applicable because they are ambiguous:
both method any2stringadd in object Predef of type (Any)scala.runtime.StringAdd
and method any2ArrowAssoc in object Predef of type [A](A)ArrowAssoc[A]
are possible conversion functions from Any to ?{val eq: ?}
def eee(a:Any,b:Any):Boolean = (a eq b)
^