diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-05-15 21:17:24 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-05-15 21:17:24 +0900 |
| commit | bc929656fb1c675fde9b1652c10f7cd42d2f63fa (patch) | |
| tree | 7ab02389d8c6c0c58e79246e2d615ae4799b05e5 /include | |
| parent | 4aba93c969a9cbfcc1ebd122a9e14e1d60dccbde (diff) | |
| download | mruby-bc929656fb1c675fde9b1652c10f7cd42d2f63fa.tar.gz mruby-bc929656fb1c675fde9b1652c10f7cd42d2f63fa.zip | |
Unify `eql?` receiver in `Hash` according to Ruby
### Example
```ruby
# example.rb
class A
def eql?(o)
p self.class
super
end
def hash
1
end
end
class B < A; end
h = {A.new => 1}
h[B.new]
```
#### Before this patch:
```console
$ bin/mruby example.rb
A
```
#### After this patch (same as Ruby)
```console
$ bin/mruby example.rb
B
```
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
