Open blickly opened 10 years ago
Repro:
Extern:
var ns = {};
/**
* @constructor
* @private
*/
ns.Foo = function() {};
Code:
new ns.Foo();
Compile with
--jscomp_error=accessControls
--jscomp_error=visibility
--warning_level=VERBOSE
and saw no warning / error.
From @ChadKillingsworth: The workaround for is to mark the parent namespace with @const
.
This issue was imported from Closure Compiler's previous home at http://closure-compiler.googlecode.com
The original discussion is archived at: http://blickly.github.io/closure-compiler-issues/#852