summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2024-07-21 12:25:04 +0900
committernagachika <nagachika@ruby-lang.org>2024-07-21 12:25:04 +0900
commit483ad38c6968feb1990f36d48d14fd55988d2150 (patch)
treeb2f6a8fb60686c2e59687e97d1c99f099aaa1bfb /test/ruby
parent2ac8e2049bad37da38576b1ed263713c66eba2c9 (diff)
merge revision(s) b15e88e0fcccb03b9cc5e4c1478ec9b10e26c961: [Backport #19619]
[Bug #19619] Preserve numbered parameters context Preserve numbered parameters context across method definitions
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_syntax.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 2ada566c84..7553cd74a6 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1706,6 +1706,7 @@ eom
]
}
+ assert_valid_syntax("proc {def foo(_);end;_1}")
assert_valid_syntax("p { [_1 **2] }")
end