main.include should be private
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 about 4 years 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/test_module.rb (test_top_include_is_private): a new test
for the above change.