Fix a bug that if and no return value case can't return true clause value
Here is a script that reproduce this problem: x = if true 1 else case 2 when 3 end 4 end p x # => nil # 1 is expected
Showing
Please register or sign in to comment