ruby-changes:64951
From: Yusuke <ko1@a...>
Date: Tue, 19 Jan 2021 13:35:56 +0900 (JST)
Subject: [ruby-changes:64951] ff8c92359a (master): test/ruby/test_pattern_matching.rb: Avoid a warning
https://git.ruby-lang.org/ruby.git/commit/?id=ff8c92359a From ff8c92359a126da43b11792184f2327f6a981efe Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 19 Jan 2021 13:34:07 +0900 Subject: test/ruby/test_pattern_matching.rb: Avoid a warning http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20210119T033003Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_pattern_matching.rb:798: warning: assigned but unused variable - x ``` diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index e4c7507..b18ef68 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -796,6 +796,7 @@ END https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pattern_matching.rb#L796 assert_block do case [0, 1, 2] in x + x = x # avoid a warning "assigned but unused variable - x" true in [*, 2, *] false -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/