struct S {
string s = "{}";
alias s this;
}
void main() {
static assert(S() == "{}"); //ok
mixin(S()); // fail
}
onlineapp.d-mixin-8(8): Error: found End of File when expecting ; following statement
https://run.dlang.io/is/r9gRMm
The spec vaguely states that the string mixin arguments "must be representable as a string". "representable" should be specified.
Comment #1 by robert.schadek — 2024-12-13T19:05:54Z