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


```rb
def foo
  2
  1 if false
end

p foo
```

foo returns nil, the value of the last expression `1 if false`, no parens required since there's no ambiguity, as there isn't any in `foo(1 if true)`

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

* Author: bughit (bug hit)
* Status: Open
* Priority: Normal
----------------------------------------
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>