Advertisement
Guest User

compiler error

a guest
Feb 24th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.60 KB | None | 0 0
  1. Error:(33, 48) type mismatch;
  2.  found   : a.type (with underlying type A)
  3.  required: ?{def +: ?}
  4. Note that implicit conversions are not applicable because they are ambiguous:
  5.  both method any2stringadd in object Predef of type [A](self: A)any2stringadd[A]
  6.  and method additiveSemigroupOps in trait AdditiveSemigroupSyntax of type [A](a: A)(implicit evidence$8: spire.algebra.AdditiveSemigroup[A])spire.syntax.AdditiveSemigroupOps[A]
  7.  are possible conversion functions from a.type to ?{def +: ?}
  8.       case _ => Some(vals.reduceLeft((a, b) => a + (b / a)))
  9.                                                ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement