November 30, 2012
If interfaces are supposed not to work in this case, is it possible to get the offset of the interface in its object?


On Fri, Nov 30, 2012 at 2:04 PM, Gor Gyolchanyan < gor.f.gyolchanyan@gmail.com> wrote:

> 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.
>



-- 
Bye,
Gor Gyolchanyan.