[Issue 11796] interface multiple inheritance not call methods

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 18 06:57:09 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=11796

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Andrej Mitrovic from comment #2)
>     sub.func1();  // triggers assertion (func2 called)

It's translated to (cast(I1)sub).func1() and a dynamic cast from I4 to I1
occurs to take the vtbl of I1. Then the issue 2013 happens.

*** This issue has been marked as a duplicate of issue 2013 ***

--


More information about the Digitalmars-d-bugs mailing list