[Issue 7612] New: Bad error message when missing compile time opCmp in struct used in enums
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 29 10:43:07 PST 2012
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: nobody at puremagic.com
ReportedBy: simendsjo at gmail.com
--- Comment #0 from simendsjo <simendsjo at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list