From 39d0ebb6e84a68ef6b5b43f33fb32f36428be548 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Mon, 16 Dec 2024 11:26:36 +0000 Subject: [PATCH] [ruby/prism] Blocks & kwargs are not valid in index assignments Ruby feature: https://bugs.ruby-lang.org/issues/20952 https://github.com/ruby/prism/commit/e612df5f36 --- test/prism/errors_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index a96c2e488d..cb2fd48d37 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -19,7 +19,11 @@ module Prism end if RUBY_VERSION < "3.4" - filepaths -= ["it_with_ordinary_parameter.txt"] + filepaths -= [ + "it_with_ordinary_parameter.txt", + "block_args_in_array_assignment.txt", + "keyword_args_in_array_assignment.txt" + ] end if RUBY_VERSION < "3.4" || RUBY_RELEASE_DATE < "2024-07-24"