1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Mentioned numbered parameter assignment is a SyntaxError in NEWS [ci skip]

Requested by Junichi Ito.
This commit is contained in:
Jeremy Evans 2020-12-05 22:31:52 -08:00
parent 5d07a21ccd
commit 18b2ce11b5

View file

@ -82,10 +82,13 @@ sufficient information, see the ChangeLog file or Redmine
* When a class variable is overtaken by the same definition in an * When a class variable is overtaken by the same definition in an
ancestor class/module, a RuntimeError is now raised (previously, ancestor class/module, a RuntimeError is now raised (previously,
it only issued a warning in verbose mode. Additionally, accessing a it only issued a warning in verbose mode). Additionally, accessing a
class variable from the toplevel scope is now a RuntimeError. class variable from the toplevel scope is now a RuntimeError.
[[Bug #14541]] [[Bug #14541]]
* Assigning to a numbered parameter is now a SyntaxError instead of
a warning.
* Endless method definition is added. [EXPERIMENTAL] * Endless method definition is added. [EXPERIMENTAL]
[[Feature #16746]] [[Feature #16746]]