www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12716] New: Improve error message : interface function is not


          Issue ID: 12716
           Summary: Improve error message : interface function is not
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: flamaros.xavier 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*

May 08 2014