Bug 5947 – Classes derived from interfaces do not check for method implementation with -o-

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-05-07T13:24:00Z
Last change time
2011-06-10T08:50:09Z
Assigned to
nobody
Creator
robert

Comments

Comment #0 by robert — 2011-05-07T13:24:55Z
The following code: ---- interface I(T) { T foo(); void bar(); } class C : I!int { } ---- Compiles without error, it should complain that foo and bar are not implemented.
Comment #1 by robert — 2011-05-07T13:38:51Z
It seems this is only happening when the -o- switch is being used, and happens regardless of whether the interface is templated.
Comment #2 by yebblies — 2011-06-10T08:50:09Z
*** This issue has been marked as a duplicate of issue 2643 ***