Stefano Mioli wrote in post #1011271:
> True, but there are still two identical "when 1".
> My point is that adding a "when 1 + 0" between them makes the warning go
> away when it shouldn't.
>
> Or am I missing something?

Numeric#+ might have redefined Numeric#=== (which is the comparison 
operator used by the case expression)

It's an edge case, admittedly. But in general: any method call has the 
ability to redefine any method.

-- 
Posted via http://www.ruby-forum.com/.