Project

General

Profile

Actions

Bug #20766

closed

Endless range rejected inside defs singleton

Added by tompng (tomoya ishida) 7 months ago. Updated 7 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-09-27T00:58:32Z master 0c25eb4ffe) [x86_64-linux]
[ruby-core:119330]

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 #1

Updated by mame (Yusuke Endoh) 7 months ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0