summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-10-10 10:24:57 -0400
committergit <svn-admin@ruby-lang.org>2024-10-10 14:45:59 +0000
commit82c76f18965487a705c13903a7c6dce35d6554d5 (patch)
treec1b63e243ce75998502f883dbeb27543fb3c4053 /test
parent146ff6617326893130e5f29935cdaeae0836cfb5 (diff)
[ruby/prism] Reject invalid splat as last statement of parentheses
https://github.com/ruby/prism/commit/3a0b1c6110
Diffstat (limited to 'test')
-rw-r--r--test/prism/errors/invalid_splat.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/prism/errors/invalid_splat.txt b/test/prism/errors/invalid_splat.txt
new file mode 100644
index 0000000000..cffd0f9879
--- /dev/null
+++ b/test/prism/errors/invalid_splat.txt
@@ -0,0 +1,4 @@
+(1
+*a)
+^~ unexpected write target
+