dbremner / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
0 stars 0 forks source link

hash returning Bignum #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
class HashToBigNum; def hash; 4_444_444_444; end; end
h = {}; k = HashToBigNum.new; h[k] = 0

Overriden hash method may return Bignum. Ruby.NET tries to cast it to int
and fails.

Original issue reported on code.google.com by sanxiyn on 23 Aug 2007 at 9:34

GoogleCodeExporter commented 8 years ago
Fixed in r167.

Original comment by sason...@gmail.com on 7 Nov 2007 at 9:18