aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Auto-Complete issue with static if #623

Open default0 opened 8 years ago

default0 commented 8 years ago

In the following code

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.