Issue #16097 has been updated by nobu (Nobuyoshi Nakada).


Could you rebase the PR with adding this reference `[Bug #16097]` to the commit log?

----------------------------------------
Bug #16097: [PATCH] Don't accidentally name anonymous module/class
https://bugs.ruby-lang.org/issues/16097#change-80722

* Author: alanwu (Alan Wu)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
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




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>