summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2024-12-16 11:26:36 +0000
committergit <svn-admin@ruby-lang.org>2024-12-16 15:00:27 +0000
commit39d0ebb6e84a68ef6b5b43f33fb32f36428be548 (patch)
tree7b203cade3b9226b06435fee326b2bc7faeee6fb
parenta46fe5c807361f07604eaba447f0487076977e7e (diff)
[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
-rw-r--r--test/prism/errors_test.rb6
1 files changed, 5 insertions, 1 deletions
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"