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

ruby-changes:27453

From: nobu <ko1@a...>
Date: Tue, 26 Feb 2013 10:36:40 +0900 (JST)
Subject: [ruby-changes:27453] nobu:r39505 (trunk): test_keyword.rb: suppress warning

nobu	2013-02-26 10:31:42 +0900 (Tue, 26 Feb 2013)

  New Revision: 39505

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39505

  Log:
    test_keyword.rb: suppress warning
    
    * test/ruby/test_keyword.rb (TestKeywordArguments#m1): suppress
      argument prefix warning.

  Modified files:
    trunk/test/ruby/test_keyword.rb

Index: test/ruby/test_keyword.rb
===================================================================
--- test/ruby/test_keyword.rb	(revision 39504)
+++ test/ruby/test_keyword.rb	(revision 39505)
@@ -246,7 +246,7 @@ class TestKeywordArguments < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_keyword.rb#L246
   end
 
   def m1(*args)
-    yield *args
+    yield(*args)
   end
 
   def test_block

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

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