[Issue 11796] interface multiple inheritance not call methods
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 22 01:12:17 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11796
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-12-22 01:12:16 PST ---
Reduced:
-----
interface I1 { void func1(); }
interface I2 { void func2(); }
interface I3 : I1 { }
interface I4 : I2, I3 { }
class Test : I4
{
void func1() { check = true; }
void func2() { }
bool check;
}
void main()
{
I4 sub = new Test;
sub.func1();
assert((cast(Test)sub).check); // fails
}
-----
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list