http://d.puremagic.com/issues/show_bug.cgi?id=7612
Summary: Bad error message when missing compile time opCmp in
struct used in enums
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from simendsjo <[email protected]> 2012-02-29 10:43:05 PST ---
Notice the error message says that "S.opCmp is not callable using E".
struct S {
int opCmp(ref const S2 other) {
return 0;
}
}
enum E : S {
a = S(),
b = S()
}
Error: undefined identifier S2, did you mean struct S?
Error: function opcmp.S.opCmp (ref _error_) is not callable using argument
types (E)
Error: function opcmp.S.opCmp (ref _error_) is not callable using argument
types (E)
Related to http://d.puremagic.com/issues/show_bug.cgi?id=4423
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------