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