[Feature #20884] Reserve "Ruby" toplevel name

This commit is contained in:
Nobuyoshi Nakada 2024-12-12 15:59:25 +09:00 committed by Nobuyoshi Nakada
parent 267ecf5f02
commit 4d86f3bf6d
Notes: git 2024-12-12 08:45:24 +00:00
3 changed files with 20 additions and 0 deletions

View file

@ -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