From: mame@... Date: 2021-04-19T05:06:07+00:00 Subject: [ruby-core:103510] [Ruby master Feature#17398] SyntaxError in endless method Issue #17398 has been updated by mame (Yusuke Endoh). File allow-command-style-endless-method-def.patch added I'm attaching an updated patch with a test. ---------------------------------------- Feature #17398: SyntaxError in endless method https://bugs.ruby-lang.org/issues/17398#change-91609 * Author: zverok (Victor Shepelev) * Status: Open * Priority: Normal ---------------------------------------- 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. ---Files-------------------------------- allow-command-style-endless-method-def.patch (3.44 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: