[Issue 21785] Cannot declare variable of opaque enum with base type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 19:07:00 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21785

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from moonlightsentinel at disroot.org ---
(In reply to moonlightsentinel from comment #0)
> [...] `var` can just be initialized by `void*.init`.

This isn't correct for all opaque enums so the code is rightfully rejected.

Added `diagnostic` because the error message is wrong.

--


More information about the Digitalmars-d-bugs mailing list