From 67bcac879a2e0ddfb4e7bbd7cb5e5401422de76a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 13 Apr 2020 18:44:33 +0900 Subject: Allow simple R-assign in endless def --- test/ruby/test_syntax.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 29813cebd5..b0d9e82f28 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1419,6 +1419,7 @@ eom assert_valid_syntax('private def inc(x) = x + 1') assert_valid_syntax('private def obj.foo = 42') assert_valid_syntax('private def obj.inc(x) = x + 1') + assert_valid_syntax('private def obj.inc(x) = x + 1 => @x') end def test_methoddef_in_cond -- cgit v1.2.3