-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Infix types doesn't work correctly with anonymous givens #10927
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
That's as specified. You need to give explicit names to the givens. |
It is specified that explicit names may be required. But it is probably an oversight that the synthesized name for the value of infix type is different from the normal form. It means given infix clashes with simple given of the argument:
https://dotty.epfl.ch/docs/reference/contextual/givens.html
|
I think that's reasonable, it sounds like the status quo makes anonymous given basically unusable for infix types, and that should be easily fixable by adding a case for |
OK, I agree that the case should be added |
Uh oh!
There was an error while loading. Please reload this page.
infix
types fails withDouble definition
compile error while using withgiven
s.Error:
The text was updated successfully, but these errors were encountered: