<div>interface I { }</div><div>class C: I { }</div><div><br></div><div>I object = new C;<br></div><div>assert(typeid(object) == typeid(C)); // fails</div><div><br></div><div>Is this normal or is it a bug?</div><div>Note, that the same works fine in case of a base class, rather then an interface.</div>
<div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>