digitalmars.D.bugs - [Issue 3525] New: Override keyword & indirect inheritance of many interfaces
- d-bugmail puremagic.com Nov 19 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3525 Summary: Override keyword & indirect inheritance of many interfaces Product: D Version: 2.036 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: tomeksowi gmail.com --- Comment #0 from Tomasz SowiĆski <tomeksowi gmail.com> 2009-11-19 10:07:52 PST --- interface IB1 { int ta(); } interface IB2 { int inna(); } interface IA : IB1, IB2 { } class A : IA { override int ta() { return 5; } override int inna() { return 1; } } It doesn't compile: Error: function hello.A.inna does not override any function The workaround is not to use the override keyword. It may be related to bug 2525. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 19 2009








d-bugmail puremagic.com