Actions
Bug #20766
closedEndless range rejected inside defs singleton
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-09-27T00:58:32Z master 0c25eb4ffe) [x86_64-linux]
Description
These are syntax error with --parser=parse.y. I think it should be syntax ok.
def (1...).f; end
def (tap{1...}).f; end
ruby-3.0: Syntax OK (checked with 3.0.6)
ruby-3.1: Syntax Error (checked with 3.1.4)
ruby --parser=prism: Syntax OK
Pull request: https://github.com/ruby/ruby/pull/11716
Actions
Like0
Like0