Actions
Bug #16097
closed[PATCH] Don't accidentally name anonymous module/class
Bug #16097:
[PATCH] Don't accidentally name anonymous module/class
Description
My patch in #15765 accidentally introduced a behavior change.
ruby -ve 'Module.new { class self::A; end; p name }' outputs a name
similar to Module#inspect when it should output nil like in Ruby 2.6.x.
I have a pull request to fix this: https://github.com/ruby/ruby/pull/2337
Actions