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: handle explicit return when method type is Nil #12179

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

asterite
Copy link
Member

@asterite asterite commented Jul 1, 2022

Fixes #12178

A similar logic is done when an implicit value is returned from a method, it was just missing in the case of an explicit return.

@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter labels Jul 1, 2022
@asterite asterite force-pushed the bug/interpreter-return-method-type-nil branch from 2bf98d7 to 5db3dcc Compare July 1, 2022 13:36
@asterite asterite force-pushed the bug/interpreter-return-method-type-nil branch from 5db3dcc to 949d477 Compare July 1, 2022 13:36
@beta-ziliani beta-ziliani added this to the 1.5.0 milestone Jul 1, 2022
@straight-shoota straight-shoota merged commit 6e47ed5 into master Jul 4, 2022
@straight-shoota straight-shoota deleted the bug/interpreter-return-method-type-nil branch July 4, 2022 21:08
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: explicit return conflicts with specified return type
4 participants