[前][次][番号順一覧][スレッド一覧]

ruby-changes:63963

From: Jeremy <ko1@a...>
Date: Sun, 6 Dec 2020 15:33:50 +0900 (JST)
Subject: [ruby-changes:63963] 18b2ce11b5 (master): Mentioned numbered parameter assignment is a SyntaxError in NEWS [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=18b2ce11b5

From 18b2ce11b5b0736723aa321e77c67be4395c3297 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Sat, 5 Dec 2020 22:31:52 -0800
Subject: Mentioned numbered parameter assignment is a SyntaxError in NEWS [ci
 skip]

Requested by Junichi Ito.

diff --git a/NEWS.md b/NEWS.md
index 46dacc5..80319e5 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -82,10 +82,13 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS.md#L82
 
 * When a class variable is overtaken by the same definition in an
   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.
   [[Bug #14541]]
 
+* Assigning to a numbered parameter is now a SyntaxError instead of
+  a warning.
+
 * Endless method definition is added.  [EXPERIMENTAL]
   [[Feature #16746]]
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]