diff options
| author | Haldun Bayhantopcu <haldun@github.com> | 2023-09-27 21:31:49 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-28 13:24:57 +0000 |
| commit | 0084bac47a49d787a86c4cfd4d238c24736eb659 (patch) | |
| tree | 85cfb20644486e4fabeaac08832ec392ca8affca /test | |
| parent | bf335bcb11501d56915240d06cb556235084b0f2 (diff) | |
[ruby/prism] Fix assertion failure for fwd params after rest
https://github.com/ruby/prism/commit/f86bff6dd7
Diffstat (limited to 'test')
| -rw-r--r-- | test/prism/errors_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index 2a8e19447c..1975a17102 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -1348,6 +1348,13 @@ module Prism ] end + def test_forwarding_arg_after_keyword_rest + source = "def f(**,...);end" + assert_errors expression(source), source, [ + ["Unexpected `...` in parameters", 9..12], + ] + end + private def assert_errors(expected, source, errors, compare_ripper: RUBY_ENGINE == "ruby") |
