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
Make :: type alias covariant #8642
Conversation
I just signed the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm curious though if there's a way to observe the difference.
@lrytz Yes, you can observe it. class Foo[+A] {
def nel: ::[A] = ???
} fails with:
but if you desalias it, it works fine: class Foo[+A] {
def nel: scala.collection.immutable.::[A] = ???
} |
@julien-truffaut thanks. Could you add this as a test case? For example here: https://github.com/scala/scala/blob/2.13.x/test/junit/scala/PredefTest.scala |
@lrytz Sure, should it be in |
|
Oh, naming convention if we have no ticket, i'm not sure :-) Alternatively, add it to |
@julien-truffaut does #8651 have implications here? |
@SethTisue Sorry I don't know. |
No description provided.