mirror of
https://github.com/ruby/ruby.git
synced 2026-11-09 08:42:18 +08:00
Fixes [#Bug 21660], followup to https://github.com/ruby/prism/pull/3674 https://github.com/ruby/prism/commit/fb445a49e5 Co-Authored-By: tomoya ishida <[email protected]>
28 lines
647 B
Plaintext
28 lines
647 B
Plaintext
def f x: = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f ... = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f * = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f ** = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f & = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f *a = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f **a = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f &a = 1
|
|
^ could not parse the endless method parameters
|
|
|
|
def f a, (b) = 1
|
|
^ could not parse the endless method parameters
|
|
|