You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: