-
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
Specialized traits design draft #21950
base: main
Are you sure you want to change the base?
Conversation
def hasNext: Boolean | ||
def next(): Int | ||
|
||
trait ArrayIterator_Int extends ArrayIterator[Int], Iterator[Int] |
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.
@odersky I've just tried it with 3.5.0 and it compiles fine with the following parents. But we agree that after erasure, we should have Iterator_Int
anyways.
trait ArrayIterator_Int extends ArrayIterator[Int], Iterator[Int] | |
trait ArrayIterator_Int extends ArrayIterator[Int], Iterator_Int |
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.
I believe it does not work if you replace both uses, the one here and the one that would map Seq[Int]
to Seq_Int
.
e550ab4
to
9daa075
Compare
No description provided.