From b9e225fcbfd045e65f1a95bcef16d97cbfb97287 Mon Sep 17 00:00:00 2001 From: tompng Date: Sat, 28 Sep 2024 13:15:29 +0900 Subject: Allow dot3 in defs singleton --- test/ruby/test_syntax.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 5c341a69b7..3ea6932b9c 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1968,6 +1968,8 @@ eom assert_valid_syntax("def foo b = 1, ...; bar(...); end") assert_valid_syntax("(def foo ...\n bar(...)\nend)") assert_valid_syntax("(def foo ...; bar(...); end)") + assert_valid_syntax("def (1...).foo ...; bar(...); end") + assert_valid_syntax("def (tap{1...}).foo ...; bar(...); end") assert_valid_syntax('def ==(...) end') assert_valid_syntax('def [](...) end') assert_valid_syntax('def nil(...) end') -- cgit v1.2.3