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

Singleton class bodies need to define a new cref/StaticScope per entry #3693

Open
headius opened this issue Feb 23, 2016 · 0 comments
Open

Comments

@headius
Copy link
Member

headius commented Feb 23, 2016

Environment

JRuby 9.1 HEAD

Expected Behavior

When opening the singleton class for a given object, Ruby 2.3 and higher will now give that body its own cref/StaticScope for purposes of constant definition.

See changes in https://bugs.ruby-lang.org/issues/10943 and TestClass#test_singleton_class_should_has_own_namespace from MRI suite.

Actual Behavior

As in MRI 2.2 and below, constant definition within a singleton class body uses the same cref/StaticScope.

I've marked this as a parser and IR issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant