Is the following legal D? // module A private class Foo; public alias Foo Bar;
// module B import A; Bar b; // I can't use Foo, but can I use Bar?I'm adding module level protection for types into DMD and wondering if this should be legal.
Is the following legal D? // module A private class Foo; public alias Foo Bar;
// module B import A; Bar b; // I can't use Foo, but can I use Bar?I'm adding module level protection for types into DMD and wondering if this should be legal.