Issue #7841 has been reported by mame (Yusuke Endoh).

----------------------------------------
Bug #7841: Cyclic Module#prepend raises no exception while include does
https://bugs.ruby-lang.org/issues/7841

Author: mame (Yusuke Endoh)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: next minor
ruby -v: ruby 2.0.0dev (2013-02-13 trunk 39225) [x86_64-linux]


Hello,

  module P; end
  module Q; include P; end
  module P; include Q; end
    #=> cyclic include detected

  module P; end
  module Q; prepend P; end
  module P; prepend Q; end
    #=> no error

Is this intentional?

-- 
Yusuke Endoh <mame / tsg.ne.jp>


-- 
http://bugs.ruby-lang.org/