ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:101475] [Ruby master Bug#17398] SyntaxError in endless method
@ 2020-12-16 19:52 zverok.offline
  2020-12-17  0:49 ` [ruby-core:101482] " mame
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zverok.offline @ 2020-12-16 19:52 UTC (permalink / raw)
  To: ruby-core

Issue #17398 has been reported by zverok (Victor Shepelev).

----------------------------------------
Bug #17398: SyntaxError in endless method
https://bugs.ruby-lang.org/issues/17398

* Author: zverok (Victor Shepelev)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
This works:
```ruby
def foo() = puts("bar")
```

This does not:
```ruby
def foo() = puts "bar"
#                ^ syntax error, unexpected string literal, expecting `do' or '{' or '('
```

Is this intentional or accidental? Not sure how it is reasoned.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-12  8:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 19:52 [ruby-core:101475] [Ruby master Bug#17398] SyntaxError in endless method zverok.offline
2020-12-17  0:49 ` [ruby-core:101482] " mame
2020-12-17  9:39 ` [ruby-core:101495] " zverok.offline
2020-12-17 13:52 ` [ruby-core:101496] " eregontp
2020-12-17 16:16 ` [ruby-core:101498] " halostatue
2020-12-18  1:58 ` [ruby-core:101503] " mame
2021-04-16  4:30 ` [ruby-core:103470] [Ruby master Feature#17398] " matz
2021-04-19  5:06 ` [ruby-core:103510] " mame
2021-05-12  8:32 ` [ruby-core:103795] " matz

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 read-only IMAP folder(s) and NNTP newsgroup(s).