[Issue 23522] Error message when enum type is not integral and a value lacks an initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 8 16:49:53 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23522
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #3 from Nick Treleaven <nick at geany.org> ---
With the PR, dmd will give introductory errors which should help the others
make sense:
enumstr.d(4): Error: cannot check `enumstr.X.b` value for overflow
enumstr.d(1): Error: no property `max` for type `string`, perhaps `import
std.algorithm;` is needed?
enumstr.d(4): Error: cannot generate value for `enumstr.X.b`
enumstr.d(4): Error: incompatible types for `("a") + (1)`: `X` and `int`
--
More information about the Digitalmars-d-bugs
mailing list