typeid() broken for interfaces?
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Fri Nov 30 02:04:42 PST 2012
interface I { }
class C: I { }
I object = new C;
assert(typeid(object) == typeid(C)); // fails
Is this normal or is it a bug?
Note, that the same works fine in case of a base class, rather then an
interface.
--
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121130/f16f94d1/attachment.html>
More information about the Digitalmars-d
mailing list