-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Milestone
Description
This code should work and it doesn't. This is the cause of the Rails master "each_with_index" bug when running tests:
module A
def foo
p 'ok'
end
end
class X
include A
end
class Y < X
end
module B
end
class Y
prepend B
end
module A
prepend B
end
Y.new.fooI believe the problem is that our "findImplementer" logic for module methods ends up jumping above Enumerable in the search, due to the same module appearing in the hierarchy twice (due to lazy prepends).