From: Yukihiro Matsumoto Date: 2005-08-11T03:21:49+09:00 Subject: Re: Modules, identical methods and warnings Hi, In message "Re: Modules, identical methods and warnings" on Thu, 11 Aug 2005 03:07:07 +0900, Daniel Berger writes: |Now consider: | |module Bar | def test; end |end | |module Baz | def test; end |end | |class Foo | include Bar | include Baz |end | |Shouldn't -w emit a warning in this case? If not, why not? If so, how |difficult would it be to implement? And would it have any annoying -w |side effects? As Module#ancestors tell you, priority line is Foo - Baz - Bar, you can/may chain test methods by using super, so that simple error emission is not good, at least under the current behavior. matz.