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

ruby-changes:60539

From: Yusuke <ko1@a...>
Date: Sat, 28 Mar 2020 06:14:11 +0900 (JST)
Subject: [ruby-changes:60539] 22c3014e36 (ruby_2_7): Suppress an "assigned but unused variable" warning

https://git.ruby-lang.org/ruby.git/commit/?id=22c3014e36

From 22c3014e36219b072fd6b1e963c4c64c7015a3cd Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Tue, 3 Mar 2020 20:54:31 +0900
Subject: Suppress an "assigned but unused variable" warning

(cherry picked from commit 501f2c44e6ae79c02a5c4d0f872fc7fa77258fcf)

diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 3c4314b..2afa823 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -1061,6 +1061,7 @@ END https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pattern_matching.rb#L1061
             2}
         false
       in a: {b:}, c:
+        _b = b
         p c
       in {a:
       }
-- 
cgit v0.10.2


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

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