Bug 9451 – Listing abstract functions in diagnostic should show full signature

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-04T15:28:00Z
Last change time
2013-03-27T05:16:26Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-02-04T15:28:35Z
class C { abstract void foo(int); abstract void foo(float); } class D : C { override void foo(int) { } } void main() { auto d = new D; } test.d(14): Error: cannot create instance of abstract class D test.d(14): Error: function foo is abstract This makes its difficult to know which overload of a function is not implemented.
Comment #1 by andrej.mitrovich — 2013-02-04T15:58:31Z
Comment #2 by github-bugzilla — 2013-03-18T03:52:57Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c4fda5c1ab4f7b5bd9cf697975f81d27d196e38d Fixes Issue 9451 - Better diagnostic on unimplemented abstract methods. https://github.com/D-Programming-Language/dmd/commit/d59eee4b85a62a797b7c462c6c0322831aa12018 Merge pull request #1620 from AndrejMitrovic/Fix9451 Issue 9451 - Better diagnostic on unimplemented abstract methods.