[ruby-core:104643] [Ruby master Bug#18040] Why should `foo(1 if true)` be an error?
From:
bughit.github@...
Date:
2021-07-19 18:47:41 UTC
List:
ruby-core #104643
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>