xxxxxxxxxx
import std.stdio;
class A {
private static class Inner {
string text;
this(string a)
{
this.text = a;
}
}
string text;
private Inner inner;
string innerText()
{
return inner.text;
}
this(string a)
{
this.text = a;
this.inner = new Inner("hello inner");
}
}
void main()
{
auto a = new A("hello");
auto i = new A.Inner("foo");//I need this to not compile, A.Inner should be private.
}