digitalmars.D.bugs - [Issue 9779] New: Improperly implemented interface methods should emit a better diagnostic
- d-bugmail puremagic.com (32/36) Mar 21 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9779
- d-bugmail puremagic.com (10/10) Mar 21 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9779
- d-bugmail puremagic.com (15/16) Mar 21 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9779
http://d.puremagic.com/issues/show_bug.cgi?id=9779 Summary: Improperly implemented interface methods should emit a better diagnostic Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 10:25:03 PDT --- interface I { void foo(int count, int** ptr); } class C : I { void foo(int count, float** ptr) { } } void main() { } $ dmd test.d(6): Error: class test.C interface function 'void foo(int count, int** ptr)' is not implementedIf there is a name match between an implementation method and an interface method, the diagnostic should list the implemented method as a partial match, and should probably show why it doesn't implement the interface method:(6): Error: class test.C interface function 'void foo(int count, int** ptr)' is not implemented (8): Partial match: 'void foo(int count, float** ptr)'-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 21 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9779 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc This seems a nice idea. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 21 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9779 11:50:20 PDT ---This seems a nice idea.The same idea can be extended for overrides: class B { void foo(int count, int** ptr) { } } class C : B { override void foo(int count, float** ptr) { } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 21 2013