[Issue 22644] Using @disable on enum members produces unrelated errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 2 18:23:57 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22644
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |moonlightsentinel at disroot.o
| |rg
Hardware|x86 |All
Resolution|--- |INVALID
OS|Mac OS X |All
--- Comment #1 from moonlightsentinel at disroot.org ---
The template instance for `writefln` has no knowledge about the value passed in
the provided snipped and hence has to accommodate for each possible value of
`Foo`.
So at most this is an enhancement for Phobos to skip disabled enum members.
--
More information about the Digitalmars-d-bugs
mailing list