Skip to content
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

Interpreter: fix cast from virtual metaclass to union #12163

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

asterite
Copy link
Member

@asterite asterite commented Jun 26, 2022

Fixes #12162

Bad math from my part 😅

It would be nice to merge this for 1.5 as it's a one-line fix, and it's easy to see it's correct (now with comments 😁)

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug fixes can always be merged in the freeze period (unless there's serious concern about potential breaking changes).
Since the interpreter is still considered unstable, interpreter features should also be fine during the freeze period.

@straight-shoota straight-shoota changed the title Interpter: fix cast from virtual metaclass to union Interpreter: fix cast from virtual metaclass to union Jun 26, 2022
@straight-shoota straight-shoota added this to the 1.5.0 milestone Jun 26, 2022
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @asterite 🙏

@straight-shoota straight-shoota merged commit cd74e1d into master Jun 28, 2022
@straight-shoota straight-shoota deleted the bug/interpreter-cast-bad-math branch June 28, 2022 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Interpreter] Hash#[]?(key) gives incorrect value in interpreter when hash values are classes
4 participants