Closed Geod24 closed 3 years ago
What is this syntax? Is it like a struct
?
DMD master says:
test.d(3): Error: `string` is not a valid attribute for enum members
test.d(3): Error: `cname` is not a valid attribute for enum members
test.d(3): Error: `;` is not a valid attribute for enum members
test.d(4): Error: `uint` is not a valid attribute for enum members
test.d(4): Error: `ipv4` is not a valid attribute for enum members
test.d(4): Error: `;` is not a valid attribute for enum members
test.d(5): Error: `ulong` is not a valid attribute for enum members
test.d(5): Error: `[` is not a valid attribute for enum members
test.d(5): Error: `2` is not a valid attribute for enum members
test.d(5): Error: `]` is not a valid attribute for enum members
test.d(5): Error: `ipv6` is not a valid attribute for enum members
test.d(5): Error: `;` is not a valid attribute for enum members
I don't know what language this is, but it doesn't seem to be D, so I think supporting this syntax is out-of-scope for this package. :)
🤦
Yes, I just realized I mistakenly substituted union
for enum
. Sorry for the noise!
Issues:
enum
's name is highlighted as an identifier, not a type;As can be seen, adding a visibility qualifier fixes the second issue. Related: #104