On Wednesday, 5 January 2022 at 08:40:15 UTC, rempas wrote:
I'm trying to use mixins and enums to "expand" code in place but the results are not what I expected and I'm getting an weird error. I have created the smallest possible example to reproduce the error and it is the following:[...]
And you cannot have else statement in different mixin:
```d
extern (C) void main() {
///OK:
mixin("static if(true){}else{}");
///ERROR:
mixin("static if(true){}");
mixin("else{}");
}
```
