ruby-changes:47138
From: naruse <ko1@a...>
Date: Mon, 3 Jul 2017 17:08:33 +0900 (JST)
Subject: [ruby-changes:47138] naruse:r59253 (trunk): Suppress warning: method redefined; discarding old ==
naruse 2017-07-03 17:08:29 +0900 (Mon, 03 Jul 2017) New Revision: 59253 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59253 Log: Suppress warning: method redefined; discarding old == Modified files: trunk/test/ruby/test_symbol.rb Index: test/ruby/test_symbol.rb =================================================================== --- test/ruby/test_symbol.rb (revision 59252) +++ test/ruby/test_symbol.rb (revision 59253) @@ -518,6 +518,7 @@ class TestSymbol < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_symbol.rb#L518 def test_eq_can_be_redefined assert_in_out_err([], <<-RUBY, ["foo"], []) class Symbol + remove_method :== def ==(obj) "foo" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/