Actions
Bug #14469
closedprivate_constant and deprecate_constant are ignored by autoloading
Bug #14469:
private_constant and deprecate_constant are ignored by autoloading
Description
Consider the following code in file "zzz.rb":
After loading the file, accesses to ZZZ::P and ZZZ:D cause an exception and a warning respectively.
$ ruby -r./zzz -e ZZZ::P
Traceback (most recent call last):
-e:1:in `<main>': private constant ZZZ::P referenced (NameError)
But autoloading the file nothing happens.
After requiring the file in ordinary way, they works.
Actions