[Issue 19056] UDAs can be added to imports but not retrieved

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 11 11:11:06 UTC 2018


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

--- Comment #6 from RazvanN <razvan.nitu1305 at gmail.com> ---
> Making those illegal will cause problems. Then the issue is should (1) be
> rejected as a special case while ignoring the attributes in (2) and (3)?
> This behavior isn't the case anywhere else. The three forms are equivalent,
> it's an easy rule to remember, and easy to have a consistent, correct
> implementation.

final:
int a;
final {int b;}

compile just fine. Whereas:

final int a;

does not.

--


More information about the Digitalmars-d-bugs mailing list