-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
anonymous given name does not include singleton term references #11175
Comments
That's as specified. Synthesized names are intended to be simple so that they can be written by the user. This means that they can clash in more intricate situations. In that case you have to supply your own names, |
Hm, mb move this to "feature requests"? |
names for anonymous givens are only generated using the parts of the type that refer to other types (so singleton term references are not considered) This is probably to prevent name clashes between terms and types source: http://dotty.epfl.ch/docs/reference/contextual/relationship-implicits.html#anonymous-given-instances |
fix #11175: consider terms in inventTypeName
Minimized code
Output
Expectation
Should be compiled and run.
The text was updated successfully, but these errors were encountered: