aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-03-03 20:54:31 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-03-28 04:01:23 +0900
commit22c3014e36219b072fd6b1e963c4c64c7015a3cd (patch)
tree551e4ade240889f6b299fe2742ea254df8988c59 /test
parent44f7e3883e49d287a96f7ef36b5c935d833300e5 (diff)
downloadruby-22c3014e36219b072fd6b1e963c4c64c7015a3cd.tar.gz
Suppress an "assigned but unused variable" warning
(cherry picked from commit 501f2c44e6ae79c02a5c4d0f872fc7fa77258fcf)
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_pattern_matching.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 3c4314bbe4..2afa823d53 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -1061,6 +1061,7 @@ END
2}
false
in a: {b:}, c:
+ _b = b
p c
in {a:
}