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

ruby-changes:58419

From: Nobuyoshi <ko1@a...>
Date: Fri, 25 Oct 2019 01:51:15 +0900 (JST)
Subject: [ruby-changes:58419] 8d0c5eb805 (master): Set method locations

https://git.ruby-lang.org/ruby.git/commit/?id=8d0c5eb805

From 8d0c5eb805a0a9afeb6e87c939c9b6f7f22df013 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 25 Oct 2019 00:54:24 +0900
Subject: Set method locations


diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 5bbcbef..4d00f91 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1493,7 +1493,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1493
     def obj1.bar(*args, **kws, &block)
       block.call(args, kws)
     end
-    obj1.instance_eval('def foo(...) bar(...) end')
+    obj1.instance_eval('def foo(...) bar(...) end', __FILE__, __LINE__)
 
     klass = Class.new {
       def foo(*args, **kws, &block)
@@ -1501,7 +1501,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1501
       end
     }
     obj2 = klass.new
-    obj2.instance_eval('def foo(...) super(...) end')
+    obj2.instance_eval('def foo(...) super(...) end', __FILE__, __LINE__)
 
     [obj1, obj2].each do |obj|
       assert_equal([[1, 2, 3], {k1: 4, k2: 5}], obj.foo(1, 2, 3, k1: 4, k2: 5) {|*x| x})
-- 
cgit v0.10.2


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

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