Issue #1376 has been updated by Heesob Park.
In case of variable, it works.
class Symbol
def ===(o)
p 42
true
end
end
# this works
a = :foo
case :foo
when a
p 'a'
end
# this dosen't work
case :foo
when :foo
p 'b'
end
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1376
----------------------------------------
http://redmine.ruby-lang.org