From 2760f2377425e2b04cc6c25df179525b43176e50 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Mon, 27 Nov 2023 15:55:15 -0500 Subject: [PRISM] Compile YieldNode with different arguments --- test/ruby/test_compile_prism.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 2f3c2dc062..d3cb1c646c 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -841,6 +841,7 @@ module Prism def test_YieldNode assert_prism_eval("def prism_test_yield_node; yield; end") assert_prism_eval("def prism_test_yield_node; yield 1, 2; end") + assert_prism_eval("def prism_test_yield_node; yield **kw if condition; end") # Test case where there's a call directly after the yield call assert_prism_eval("def prism_test_yield_node; yield; 1; end") -- cgit v1.2.3