[Issue 22981] premature enum type inference leads to spurious error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 30 17:27:44 UTC 2022


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

--- Comment #11 from Max Samukha <maxsamukha at gmail.com> ---
(In reply to Basile-z from comment #7)
> In `S` the non static member `E e` create a cycle but actually with a pass
> dedicated to "static members - only" , the internal enum `S.a` would not
> require `S` semantic to be complete.

Yes, I understand this. I meant UDAs are similar *in concept* to static members
- they are things associated with the type's name but are not related to values
of that type. Before D acquired proper UDAs, we used to emulate them with
static fields and introspection.

--


More information about the Digitalmars-d-bugs mailing list