Issue #18040 has been reported by bughit (bug hit).

----------------------------------------
Bug #18040: Why should `foo(1 if true)` be an error?
https://bugs.ruby-lang.org/issues/18040

* Author: bughit (bug hit)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
There's no ambiguity here that should require another set of parens `foo((1 if true))`



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>