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

ruby-changes:59145

From: Yusuke <ko1@a...>
Date: Tue, 10 Dec 2019 11:27:54 +0900 (JST)
Subject: [ruby-changes:59145] c50d9dc67d (master): test/ruby/test_keywords.rb: suppress a warning

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

From c50d9dc67d350ad4e21ff1af39635bb5a6114282 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Tue, 10 Dec 2019 11:26:22 +0900
Subject: test/ruby/test_keywords.rb: suppress a warning

https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20191210T003005Z.log.html.gz
```
.../test/ruby/test_keyword.rb:2711: warning: `*' interpreted as argument prefix
```

diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb
index b0199e0..874b09b 100644
--- a/test/ruby/test_keyword.rb
+++ b/test/ruby/test_keyword.rb
@@ -2708,7 +2708,7 @@ class TestKeywordArguments < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_keyword.rb#L2708
 
     o = Object.new
     def o.foo(*args)
-      yield *args
+      yield(*args)
     end
     foo = o.method(:foo).to_proc
     assert_warn(/Skipping set of ruby2_keywords flag for proc \(proc created from method\)/) do
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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