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

ruby-changes:60274

From: Yusuke <ko1@a...>
Date: Tue, 3 Mar 2020 20:55:12 +0900 (JST)
Subject: [ruby-changes:60274] 501f2c44e6 (master): Suppress an "assigned but unused variable" warning

https://git.ruby-lang.org/ruby.git/commit/?id=501f2c44e6

From 501f2c44e6ae79c02a5c4d0f872fc7fa77258fcf 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


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/

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