__traits(compiles , mixin ... )

Adam D. Ruppe destructionator at gmail.com
Wed Oct 25 19:25:01 UTC 2017


On Wednesday, 25 October 2017 at 19:12:02 UTC, SrMordred wrote:
> Maybe i´m tired already, but whats wrong here:
>
> pragma(msg, __traits( compiles, mixin("int x") ) );

You are missing a ;

The mixin must compile as a full thing in context. Variable 
declarations need the ; to be complete.


More information about the Digitalmars-d-learn mailing list