[Issue 12716] New: Improve error message : interface function is not implemented

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 8 06:56:37 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12716

          Issue ID: 12716
           Summary: Improve error message : interface function is not
                    implemented
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: flamaros.xavier at gmail.com

I got this error :
interface function 'void setParameter(string name, ParameterType type, void*
values)' is not implemented

I took a few time to figure out what it was. The issue came from multiple
definition of enum ParameterType which was in both module (one with the
interface and one with the implementation class).

I think the error message isn't enough explicit and have to point the existence
of multiple definitions of parameters type, it's just like an overloading that
isn't allowed.

If the message was written like the following form it may be easier to fix it :
overloading interface function 'void setParameter(string name,
interfaceModuleName.ParameterType type, void* values)' is not allowed.
overloads :
void setParameter(string name, classModuleName.ParameterType type, void*
values)
...

--


More information about the Digitalmars-d-bugs mailing list