ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119330] [Ruby master Bug#20766] Endless range rejected inside defs singleton
@ 2024-09-28  6:38 tompng (tomoya ishida) via ruby-core
  0 siblings, 0 replies; only message in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-09-28  6:38 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

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/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-28  6:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-28  6:38 [ruby-core:119330] [Ruby master Bug#20766] Endless range rejected inside defs singleton tompng (tomoya ishida) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).