-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Ambiguous implicit arguments problem #12123
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
Comments
Possibly a diplicate of #7999 |
Well, the compiler isn't wrong, both of these implicits could fit and neither one is more specific than the other. This wouldn't be an issue if |
If I pass
Scala 3 compiles this line and expands it to: val x1: Expr[AnyVal] =
Example.fun.run[AnyVal](Expr.apply[Double](3.0d))(TypeTag.TInt) The Scala 3 solution is correct. Scala 2 instantiates I don't think there's anything we can do here, unfortunately. |
Thank you for helping with this. I think we can live with invariant |
Compiler version
3.0.0-RC2
Minimized code
Output
Expectation
This is something we have a problem with when migrating ZIO SQL to Scala 3. It works fine in Scala 2.13 and 2.12 and it seems it shouldn't be ambiguous in Scala 3 either.
The text was updated successfully, but these errors were encountered: