New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous PPrint #208

Closed
stanch opened this Issue Sep 5, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@stanch

stanch commented Sep 5, 2015

Loading Ammonite Repl...
@ load.ivy("org.spire-math" %% "spire" % "0.10.1")

@ import spire.implicits._
import spire.implicits._
@ import spire.math._
import spire.math._
@ Algebraic(4)
res3: Algebraic = Algebraic(4)
@ Algebraic(4)
Compilation Failed
Main.scala:662: ambiguous implicit values:
 both value derive$macro$179 of type => pprint.PPrint[spire.math.Algebraic.Expr]
 and value derive$macro$183 of type => pprint.PPrint[spire.math.Algebraic.Expr]
 match expected type pprint.Chunker.PP[spire.math.Algebraic.Expr]
        def $main() = { ammonite.repl.frontend.ReplBridge.repl.Internal.combinePrints(ammonite.repl.frontend.ReplBridge.repl.Internal.print(res4, res4, "res4", None)) }
                                                                                                                                           ^
@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented Oct 3, 2015

Here's another one

haoyi-server@ upickle.json.read("{}")
Compilation Failed
ambiguous implicit values:
 both value derive$macro$2 of type => pprint.PPrint[upickle.Js.Value]
 and value derive$macro$8 of type => pprint.PPrint[upickle.Js.Value]
 match expected type pprint.PPrint[upickle.Js.Value]
ambiguous implicit values:
 both value derive$macro$2 of type => pprint.PPrint[upickle.Js.Value]
 and value derive$macro$8 of type => pprint.PPrint[upickle.Js.Value]
 match expected type pprint.PPrint[upickle.Js.Value]

@lihaoyi lihaoyi added the bug label Dec 1, 2015

@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented May 17, 2017

Fixed in 2d78e1f

@lihaoyi lihaoyi closed this May 17, 2017

@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented May 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment