class A {} class B : A {} void main() { auto a = new A; writeln(typeid(a)); } Currently typeid only applies to a type and consequently returns static type information. This bug report aims at merging classinfo into TypeInfo_class. We need to therefore have typeid accept values.
Bug 3346 seems to be the same as this one. When fixed, bug 3345 can probably be closed as well.
I think you meant: auto a = new B;
(In reply to comment #2) > I think you meant: > > auto a = new B; Sorry. I actually meant: A a = new B; meaning that the static type is different from the dynamic type.
Fixed dmd 2.037