digitalmars.D.bugs - [Issue 12716] New: Improve error message : interface function is not
- via Digitalmars-d-bugs (31/31) May 08 2014 https://issues.dlang.org/show_bug.cgi?id=12716
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 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* values) ... --
May 08 2014