
Issue #20766 has been reported by tompng (tomoya ishida). ---------------------------------------- Bug #20766: Endless range rejected inside defs singleton https://bugs.ruby-lang.org/issues/20766 * Author: tompng (tomoya ishida) * Status: Open * ruby -v: ruby 3.4.0dev (2024-09-27T00:58:32Z master 0c25eb4ffe) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- These are syntax error with --parser=parse.y. I think it should be syntax ok. ```ruby 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 -- https://bugs.ruby-lang.org/