Skip to content

Commit a689c97

Browse files
committed
Add a failing YJIT bootstrap test for argument delegation
1 parent 93c71fe commit a689c97

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

bootstraptest/test_yjit.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4754,6 +4754,22 @@ def entry(define)
47544754
entry(true)
47554755
}
47564756

4757+
assert_equal '[:ok]', %q{
4758+
def ok
4759+
[:ok]
4760+
end
4761+
4762+
def delegator(...)
4763+
ok(...)
4764+
end
4765+
4766+
def call_send
4767+
send(:delegator)
4768+
end
4769+
4770+
call_send
4771+
}
4772+
47574773
assert_equal '[:ok, :ok, :ok]', %q{
47584774
def identity(x) = x
47594775
def foo(x, _) = x

0 commit comments

Comments
 (0)