[ruby-core:94277] [Ruby master Bug#16097] [PATCH] Don't accidentally name anonymous module/class
From:
XrXr@...
Date:
2019-08-11 15:40:15 UTC
List:
ruby-core #94277
Issue #16097 has been reported by alanwu (Alan Wu).
----------------------------------------
Bug #16097: [PATCH] Don't accidentally name anonymous module/class
https://bugs.ruby-lang.org/issues/16097
* 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>