xxxxxxxxxx
struct Foo
{
Object obj_;
invariant {assert(obj_ !is null);}
auto obj()
{
return this.obj_;
}
enum compiles = __traits(compiles, &Foo.init.obj);
}
void main()
{
Foo foo = Foo();
foo.obj.toString();
}