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

ruby-changes:64559

From: Marc-Andre <ko1@a...>
Date: Thu, 24 Dec 2020 18:59:03 +0900 (JST)
Subject: [ruby-changes:64559] 7ca2ca9e32 (master): Remove unneeded code

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

From 7ca2ca9e32ceea48e2e3a2d31318dff57da7f08e Mon Sep 17 00:00:00 2001
From: Marc-Andre Lafortune <github@m...>
Date: Thu, 24 Dec 2020 02:53:26 -0500
Subject: Remove unneeded code


diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 3dfab84..cc7421b 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -474,11 +474,6 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L474
     assert_equal("#<Method: #{c4.inspect}(#{c.inspect})#bar(foo)() #{__FILE__}:#{line_no}>", m4.inspect, bug15608)
 
     bug17428 = '[ruby-core:101635] [Bug #17428]'
-    c4 = Class.new(c)
-    c4.class_eval { alias bar foo }
-    o = c4.new
-    o.singleton_class
-    m4 = o.method(:bar)
     assert_equal("#<Method: #<Class:String>(Module)#prepend(*)>", String.method(:prepend).inspect, bug17428)
 
     c5 = Class.new(String)
-- 
cgit v0.10.2


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

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