Bug 12716 – Improve error message : interface function is not implemented
Status
RESOLVED
Resolution
MOVED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-05-08T13:56:37Z
Last change time
2022-08-22T15:46:32Z
Assigned to
No Owner
Creator
Xavier Bigand
Comments
Comment #0 by flamaros.xavier — 2014-05-08T13:56:37Z
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)
...
Comment #1 by razvan.nitu1305 — 2022-08-22T15:46:32Z
Without a reproducible test case, the chances of any issue getting fix are close to 0.