www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Should this work?

reply Patrick Down <pat codemoon.com> writes:
struct Foo
{
  alias int StructType;
}

Foo.StructType a; // OK

Foo b;

typeof(b).StructType c; // Not ok
Jun 20 2004
parent "Walter" <newshound digitalmars.com> writes:
Yes, it should work.

"Patrick Down" <pat codemoon.com> wrote in message
news:Xns950EA5752C54Dpatcodemooncom 63.105.9.61...
 struct Foo
 {
   alias int StructType;
 }

 Foo.StructType a; // OK

 Foo b;

 typeof(b).StructType c; // Not ok
Jun 20 2004