jruby
jruby copied to clipboard
Missing error when a class variable is overtaken by an ancestor
When a class variable is overtaken by the same definition in an ancestor class/module, a RuntimeError is now raised (previously, it only issued a warning in verbose mode). Additionally, accessing a class variable from the toplevel scope is now a RuntimeError.
May be important enough to fix for 9.4 if it represents other changes to class variables.