Project

General

Profile

Actions

Bug #16097

closed

[PATCH] Don't accidentally name anonymous module/class

Added by alanwu (Alan Wu) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:94277]

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

Also available in: Atom PDF

Like0
Like0Like0Like0