https://issues.dlang.org/show_bug.cgi?id=23522
Basile-z <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |[email protected] Severity|trivial |normal --- Comment #1 from Basile-z <[email protected]> --- semantics are more subtle, the increment from the previous value can work for non-integral types too: ``` struct FooInt { int i; auto opBinary(string op : "+")(int j) { return typeof(this)(i + j); } static @property FooInt max() { return typeof(this)(int.max); } } enum foolist { hi = FooInt(0), bye } ``` So you can only determine if the implicit value can be set by trying it. --
