aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-03-02 22:37:04 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-03-27 14:57:47 +0900
commitaeda3a7f036aa7c768abffd1965972c658f49c22 (patch)
treec9f067856e1fa0ed0d54cda78f346b95a7971d73 /test
parent004c298738dc0924e7483b0c3f41c798dabe9e5b (diff)
downloadruby-aeda3a7f036aa7c768abffd1965972c658f49c22.tar.gz
Suppress "assigned but unused variable" warnings
(cherry picked from commit 65dd50fc25f6522536d5c4749055384bde1f9371)
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_pattern_matching.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index f9217aa7da..3eea523416 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -1047,6 +1047,7 @@ END
in {a: 1,}
false
in {a:,}
+ _a = a
true
end
end
@@ -1061,6 +1062,7 @@ END
false
in {a:
}
+ _a = a
true
end
end