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?
Updated by shugo (Shugo Maeda) almost 8 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.
[ruby-core:51293] [Bug #7670]
test/ruby/test_module.rb (test_top_include_is_private): a new test
for the above change.