mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Feature #20884] Reserve "Ruby" toplevel name
This commit is contained in:
parent
267ecf5f02
commit
4d86f3bf6d
Notes:
git
2024-12-12 08:45:24 +00:00
3 changed files with 20 additions and 0 deletions
|
@ -3626,6 +3626,9 @@ const_set(VALUE klass, ID id, VALUE val)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (klass == rb_cObject && id == idRuby) {
|
||||
rb_warn_reserved_name_at(3.5, "::Ruby");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue