Issue #2129 has been updated by Takehiro Kubo.


Thanks for the fix not to raise a TypeError.

Well, ruby svn trunk 25031 calculate Rational and BigDecimal as follows:
  Rational + BigDecimal -> Rational
  BigDecimal + Rational -> BigDecimal  

I think that it should be
  Rational + BigDecimal -> Rational
  BigDecimal + Rational -> Rational
or
  Rational + BigDecimal -> BigDecimal
  BigDecimal + Rational -> BigDecimal

I prefer the former.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2129

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