given the following code...
struct A {
UINT val;
};
struct B {
UINT valdifferent;
};
void somefunc
{
UINT uType;
switch (uType)
{
case 0:
{
B b;
b.valdifferent;
}
break;
case 1:
{
A b;
A a;
b.valdifferent;
a.val;
}
break;
}
}
in case 1, typing 'b.' brings up the auto complete box which shows the entry "valdifferent" rather than "val". VA seems to associate whatever was associated with 'b' first and maybe can't handle a variable of the same name being redeclared in a different scope? ( i typed in the code for case 0 first).
Is this a bug? or am i doing something wrong?
-matt.