summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-21 09:55:31 -0400
committergit <svn-admin@ruby-lang.org>2024-05-21 15:46:45 +0000
commitff43b4a28b137af6435603eccb57d6cae85d210b (patch)
tree7c834b505316d02ea394ea2a1a6146e8e844a0c2 /test
parent8277cf0799145bed0c813bfcc187739f77b3102d (diff)
[ruby/prism] Add error for numbered parameter used in inner block
https://github.com/ruby/prism/commit/c386ba6d48
Diffstat (limited to 'test')
-rw-r--r--test/prism/errors_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb
index 3670b90dd7..6f926452fa 100644
--- a/test/prism/errors_test.rb
+++ b/test/prism/errors_test.rb
@@ -1377,7 +1377,7 @@ module Prism
def test_double_scope_numbered_parameters
source = "-> { _1 + -> { _2 } }"
- errors = [["numbered parameter is already used in outer scope", 15..17]]
+ errors = [["numbered parameter is already used in outer block", 15..17]]
assert_errors expression(source), source, errors
end