mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_pattern_matching.rb: Avoid a warning
20210119
T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_pattern_matching.rb:798:
warning: assigned but unused variable - x
```
This commit is contained in:
parent
5741236a0c
commit
ff8c92359a
1 changed files with 1 additions and 0 deletions
|
@ -796,6 +796,7 @@ END
|
|||
assert_block do
|
||||
case [0, 1, 2]
|
||||
in x
|
||||
x = x # avoid a warning "assigned but unused variable - x"
|
||||
true
|
||||
in [*, 2, *]
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue