ruby-changes:64336
From: Yusuke <ko1@a...>
Date: Sat, 19 Dec 2020 21:20:00 +0900 (JST)
Subject: [ruby-changes:64336] 4735a5b9d2 (master): test/ruby/test_module.rb: Avoid "warning: method redefined"
https://git.ruby-lang.org/ruby.git/commit/?id=4735a5b9d2 From 4735a5b9d2cbde69c501ee8d5bb570f4fac7e51d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 19 Dec 2020 21:19:16 +0900 Subject: test/ruby/test_module.rb: Avoid "warning: method redefined" diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 443ccc3..5017d9c 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -1239,8 +1239,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1239 assert_equal([:e, :f], c.class_eval { attr_reader :e, :f }) assert_equal([:g=], c.class_eval { attr_writer :g }) assert_equal([:h=, :i=], c.class_eval { attr_writer :h, :i }) - assert_equal([:g, :g=], c.class_eval { attr_accessor :g }) - assert_equal([:h, :h=, :i, :i=], c.class_eval { attr_accessor :h, :i }) + assert_equal([:j, :j=], c.class_eval { attr_accessor :j }) + assert_equal([:k, :k=, :l, :l=], c.class_eval { attr_accessor :k, :l }) end def test_alias_method -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/