Issue #1792 has been updated by Kenta Murata.

Status changed from Closed to Open

I reopen this ticket because I rethink [ruby-core:39491] is bug.
But, unfortunately, I don't know how to fix this.
Using to_int cannot fix the original problem.
May Numeric#coerce is used for bitwise operation?

----------------------------------------
Bug #1792: Fixnum#& 等が、Rational などを受けつける
http://redmine.ruby-lang.org/issues/1792

Author: tadayoshi funaba
Status: Open
Priority: Normal
Assignee: Kenta Murata
Category: 
Target version: 1.9.x
ruby -v: -


=begin
 1 & 1.5 がエラーになるので、
 1 & Rational(3,2)
 や
 1 & BigDecimal('1.5')
 もエラーにすべきかもしれません。
=end



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