ruby-changes:59638
From: Yusuke <ko1@a...>
Date: Tue, 7 Jan 2020 01:40:30 +0900 (JST)
Subject: [ruby-changes:59638] e92bebb0c5 (master): Suppress some warnings
https://git.ruby-lang.org/ruby.git/commit/?id=e92bebb0c5 From e92bebb0c562a2a7829914b5e34c63ba7d2b7e04 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 7 Jan 2020 01:33:30 +0900 Subject: Suppress some warnings ``` .../ruby/test/ruby/test_keyword.rb:3509: warning: assigned but unused variable - bug8993 .../ruby/test/ruby/test_object.rb:83: warning: assigned but unused variable - f .../ruby/test/ruby/test_object.rb:95: warning: method redefined; discarding old initialize_clone .../ruby/test/ruby/test_object.rb:84: warning: previous definition of initialize_clone was here ``` diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb index c49496d..02745a1 100644 --- a/test/ruby/test_keyword.rb +++ b/test/ruby/test_keyword.rb @@ -3506,7 +3506,6 @@ class TestKeywordArguments < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_keyword.rb#L3506 end def test_precedence_of_keyword_arguments_with_post_argument - bug8993 = '[ruby-core:57706] [Bug #8993]' a = Class.new do def foo(a, b, c=1, *d, e, f:2, **g) [a, b, c, d, e, f, g] diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index bfc7d7d..55709bf 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -80,7 +80,6 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L80 attr_reader :f end o = c.new - f = true def o.initialize_clone(_, freeze: true) @f = freeze super @@ -92,6 +91,9 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L91 assert_kind_of c, clone assert_equal false, clone.f + class << o + remove_method(:initialize_clone) + end def o.initialize_clone(_) super end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/