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
Implicit generics come back to bite you #2177
Comments
The compiler needs to become smarter and allow for both. That doesn't look too hard to do, implicit type parameters already have some anonymous flag iirc. |
Why would In any case, I have met a similar issue here. The linked issue is actually about a compiler crash, but when I try to make it generic I probably run into the same issue described here (see the second comment) |
Still open, and I still don't understand why |
@andreaferretti, the second generic parameter is what gets bound to the |
Shouldn't this be either The way it was originally written, Can this be closed? |
Everything works intentional, even though it might be a bit confusing at times. I am closing this, as this was a quesiton that got solved, and there isn't any activity left anymore.. |
Fails with:
If you leave away the
[T]
generics of Rational everywhere, then the[int]
ofx
can be determined automatically. Can this be achieved while still using generic Rationals?The text was updated successfully, but these errors were encountered: