main.include should be private
|ruby -v:||ruby 2.0.0dev (2013-01-07 trunk 38725) [i686-linux]||Backport:|
Module#include is private, but main.include seems to be public:
self.include Enumerable #=> no error
It should be private, shouldn't it?
#2 Updated by Shugo Maeda over 1 year ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38731.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
eval.c (Init_eval): main.include should be private.
test/ruby/testmodule.rb (testtopincludeis_private): a new test
for the above change.