Skip to content

Fix bug in erased lub of Java array types. #1068

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

Closed
wants to merge 1 commit into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 8, 2016

The lub of Int[] and Float[] is Object, not Object[].
Fixes #1065.

Review by @sjrd

The lub of Int[] and Float[] is Object, not Object[].
Fixes scala#1065.
@sjrd
Copy link
Member

sjrd commented Feb 8, 2016

Looks good to me. But if you ask me, I believe #1067 is a slightly better fix. It is likely faster because no additional subtyping is required, but mostly the logic is more understandable.

@odersky
Copy link
Contributor Author

odersky commented Feb 8, 2016

Superseded by #1067

@odersky odersky closed this Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants