https://issues.dlang.org/show_bug.cgi?id=20777
Paul Backus <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Summary|User defined types as |User defined type as enum |anonymous enums basetype, |base type fails to compile. |fail to compile. | Severity|enhancement |normal --- Comment #1 from Paul Backus <[email protected]> --- Simplified example: --- struct fooint { int i; auto opBinary(string op : "+")(int j) { return fooint(i + j); } @property fooint max() { return fooint(int.max); } } enum foolist { hi = fooint(0), bye } --- Produces the following error message: --- Error: no property `max` for type `fooint`, did you mean `onlineapp.fooint.max`? --- --
