diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-25 00:54:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-25 00:54:24 +0900 |
commit | 8d0c5eb805a0a9afeb6e87c939c9b6f7f22df013 (patch) | |
tree | 8b1c4aa660978cf5101712a933ce5b25c53419eb /test/ruby/test_syntax.rb | |
parent | 2ea698969ec92e6442e9a4cf93217d5a690cb559 (diff) |
Set method locations
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 5bbcbef3a4..4d00f9169b 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1493,7 +1493,7 @@ eom 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 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}) |