Mike Dalessio 0768f08caf Fix UnboundMethod#== for methods from included/extended modules [Backport #21873]
Method#unbind clones the method entry, preserving its defined_class.
For methods mixed in via include/extend, defined_class is an ICLASS,
causing UnboundMethod#== to return false when comparing against the
same method obtained via Module#instance_method.

Resolve ICLASS defined_class in method_eq.

[Bug #21873]
2026-02-10 10:32:51 -08:00
..
2025-12-24 14:10:09 +13:00
2026-01-12 17:59:55 -08:00
2026-02-09 17:38:24 -08:00