struct S(int v)
{
static if(v == 1)
int a;
else
mixin("int a, b");
}
int main()
{
S!1 s;
s|
}
Placing the cursor at the | after s and hitting . gives no completion for member s.a.
Removing the mixin in the fallback case (which isn't hit due to v == 1) makes completion work again.
In the following code
Placing the cursor at the | after
s
and hitting.
gives no completion for member s.a. Removing the mixin in the fallback case (which isn't hit due to v == 1) makes completion work again.