Possible UDA bug

Timon Gehr timon.gehr at gmx.ch
Sun Feb 24 11:19:17 PST 2013


On 02/24/2013 05:04 PM, jerro wrote:
> This code currently compiles:
>
> int bar();
> @bar() void foo(){}
>
> But this gives an error, as expected:
>
> int bar();
> @bar() void foo(){}
> pragma(msg, __traits(getAttributes, foo));
>
> I would expect the first example to give an error too. Is the current
> behavior deliberate or is it a DMD bug?

Bug.


More information about the Digitalmars-d mailing list