Issue #6224 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to matz (Yukihiro Matsumoto)


----------------------------------------
Feature #6224: Make variables in if/unless conditions available to conditional statements
https://bugs.ruby-lang.org/issues/6224#change-25426

Author: gcao (Guoliang Cao)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 


I propose to make below code work

  do_something(a) if a = condition

Above code should work exactly same as

  if a = condition
    do_something(a)
  end

If there is a reason behind why the first case does not work, please let me know.

Thank you.
Guoliang Cao


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