[Issue 22665] ImportC: qualified enum values should be of enum type on the D side, not int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 13 19:47:48 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22665
--- Comment #6 from dave287091 at gmail.com ---
(In reply to Walter Bright from comment #4)
> "shall be capable of representing the values of" is not the same as being
> the same type.
Yes, but it means that the implicit conversion is safe, in the same way that
converting a short to an int is safe, or that (int & 0x7f) is allowed to
implicitly convert to byte.
--
More information about the Digitalmars-d-bugs
mailing list