You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you compile a.scala, then b.scala with 2.11.4, then you get the ambiguous implicits error shown beneath. For the problem to be apparent, a.scala must be compiled with 2.11.4, but b.scala can be compiled with either 2.11.2 or 2.11.4 (i.e. I'd infer that the problem is with the binaries produced by 2.11.4).
The most interesting thing about it is that the method foo and the macro seem to be completely unrelated. The error still occurs if foo gets moved to a separate object.
> scalac a.scala && scalac b.scala
b.scala:1:error: ambiguous implicitvalues:
both value StringCanBuildFrom in objectPredef of type=> scala.collection.generic.CanBuildFrom[String,Char,String]
and method $conforms in objectPredef of type [A]=><:<[A,A]
match expected typeTobjectTest { X.extractor }
^
one error found
The text was updated successfully, but these errors were encountered:
If you compile a.scala, then b.scala with 2.11.4, then you get the ambiguous implicits error shown beneath. For the problem to be apparent, a.scala must be compiled with 2.11.4, but b.scala can be compiled with either 2.11.2 or 2.11.4 (i.e. I'd infer that the problem is with the binaries produced by 2.11.4).
The most interesting thing about it is that the method
foo
and the macro seem to be completely unrelated. The error still occurs iffoo
gets moved to a separate object.You can also see the problem in the REPL.
a.scala:
b.scala:
output:
The text was updated successfully, but these errors were encountered: