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

Compiler: define self variable inside types #6047

Closed
wants to merge 1 commit into from

Conversation

asterite
Copy link
Member

@asterite asterite commented May 1, 2018

Fixes #5911

When self was used inside a type, there wasn't really a variable representing it, we just assigned the type of that self node to what it needed to be. But that self var could later be needed to restrict its type in an is_a? or other constructs, so we now declare it.

@asterite
Copy link
Member Author

asterite commented May 2, 2018

CI failed, I have to check why...

@asterite
Copy link
Member Author

asterite commented May 2, 2018

This PR is wrong, other things needs to be done. The scope of vars should be different in each class/type, and different from the top-level scope (like in Ruby). Closing.

@asterite asterite closed this May 2, 2018
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.

None yet

4 participants