VAX 1649, VS2008, WinXP SP2.
Try following code:
class CFoo
{
public:
struct s
{
int a ;
int b ;
} ;
void test() ;
}
void CFoo::test()
{
s* ps ;
ps = NULL ; // <-- Refactor this line to source
}
Now select the line with the pointer to the struct setting to NULL. Select "Extract Method" and use the option "Extract to Source".
The inner class type "s" has no class-prefix in the refactored method, thus the compiler cant recognize the type.