struct S {
@disable this() immutable;
}
void main() {
S s;
}
=> xx.d(6): Error: variable xx.main.s default construction is disabled for type S
Comment #1 by razvan.nitu1305 — 2022-02-17T11:31:43Z
It doesn't matter whether the default constructor is annotated with immutable or not since its result is always going to be unique (nobody else has access to it), therefore it can be implicitly converted to any combination of qualifiers. The compiler doesn't even look at the qualifier in this case.
So this issue is invalid.