VAX 1715 with VS2005 SP2
File test.h:
struct Foo
{
int bar();
};
File test.cpp:
#include "test.h"
int Foo::bar() { return 0; }
int main()
{
Foo foo;
return foo.bar();
}
1. Right-click on the "bar" in main() and choose "Add Similar Member...".
2. Tuck a "1" at the end of the name and hit <ENTER>.
3. Scratch head in confusion.
Note: The operation works as expected on the two other instances of "bar".