Bug 8787 – Virtual not abstract methods in interfaces error message
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-09T01:45:00Z
Last change time
2013-02-11T22:49:41Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2012-10-09T01:45:24Z
interface Foo {
void bar() {}
}
void main() {}
DMD 2.061alpha gives:
temp.d(2): Error: function temp.Foo.bar function body is not abstract in interface Foo
But I suggest an error message like this because final methods are allowed in D2 interfaces:
temp.d(2): Error: function temp.Foo.bar function body is not abstract or final in interface Foo
Comment #1 by andrej.mitrovich — 2012-12-27T17:14:05Z