Diverging implicit pprint with Nil or None with default-predef.scala #313
Labels
Comments
Here's a smaller repro, with no predef haoyi-mbp:Ammonite haoyi$ ~/amm
Loading...
Welcome to the Ammonite Repl 0.5.2
(Scala 2.11.7 Java 1.8.0_25)
@ None
res0: None.type = None
@ implicit def foo: pprint.PPrinter[java.io.File] = ???
defined function foo
@ None
Compilation Failed
Main.scala:49: diverging implicit expansion for type pprint.PPrinter[A]
starting with method foo in object cmd1
.print(res2, res2, "res2", scala.None)
^ wtf? |
Another comment: the problem occurs only when
|
I'm having the same error! |
Should be fixed in 2d78e1f, which uses the new version of pprint which no longer uses macros/implicits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems to work fine when my predef is commented out
But if it's in place, it blows up
Clearly some implicit in the default predef is messing with things.
The text was updated successfully, but these errors were encountered: