Project

General

Profile

Actions

Bug #15825

closed

Fix a case where numbered parameters should not be allowed

Added by jeremyevans0 (Jeremy Evans) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-05-05 trunk 84e71e9fc1) [x86_64-openbsd]
[ruby-core:92543]

Description

Because proc{|| @1} is a syntax error, the following should
also be syntax errors:

proc { |  
| @1}

proc { |; a| @1 }

The attached patch makes both of those cases syntax errors.


Files

fix-numbered-parameters-opt_bv_decl.patch (1.49 KB) fix-numbered-parameters-opt_bv_decl.patch jeremyevans0 (Jeremy Evans), 05/05/2019 04:38 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0