Does UDA not work for enums?

Marc jckj33 at gmail.com
Mon Jan 1 17:15:24 UTC 2018


I got compilers errors from this:

> enum E {
> 	@("foo")
> 	A,
> 	@("baa")
> 	B
> }

I got:

> Error: basic type expected, not @
> Error: no identifier for declarator _error_
> Error: type only allowed if anonymous enum and no enum type
> Error: if type, there must be an initializer
> Error: found @ when expecting ,
[...]



More information about the Digitalmars-d-learn mailing list