D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3525 - Override keyword & indirect inheritance of many interfaces
Summary: Override keyword & indirect inheritance of many interfaces
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-19 10:07 UTC by Tomasz Sowiński
Modified: 2019-05-09 23:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Tomasz Sowiński 2009-11-19 10:07:52 UTC
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.
Comment 1 yebblies 2012-02-20 03:36:40 UTC
Seems to work with dmd 2.058 and 1.072
Comment 2 Dlang Bot 2019-05-09 23:21:43 UTC
dlang/phobos pull request #6902 "Issue 3525 was fixed" was merged into master:

- e2ab79408bd176ad438928faabcd76ee9e9bdbcc by Nicholas Wilson:
  Issue 3525 was fixed

https://github.com/dlang/phobos/pull/6902