From: merch-redmine@...
Date: 2019-07-05T21:07:43+00:00
Subject: [ruby-core:93566] [Ruby master Bug#11301] Module#prepend should have always added the module before the current
Issue #11301 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Open to Closed
This was fixed between Ruby 2.2 and Ruby 2.3:
```
$ ruby23 -e "module M; end; class A; prepend M; end; class B [M, A, Object, PP::ObjectMixin, Kernel, BasicObject]
class B [B, M, A, Object, PP::ObjectMixin, Kernel, BasicObject]
~~~
It should be either error (for not adding module) or the module appearing multiple times,
i.e. `B.ancestors` to be
~~~
[M, B, M, A, Object, PP::ObjectMixin, Kernel, BasicObject]
~~~
Matz.
--
https://bugs.ruby-lang.org/
Unsubscribe: