Problem 1:
namespace Refactor
{
class RTest
{
void Func(int a);
}
}
namespace Refactor
{
void RTest::Func(int a)
{
return a*10;
}
}
Click Change Signature, and rename the param a to b, only the function declaration changes correctly. The code in definition block and param list remain same, but the name of the function changes to
void Refactor::RTest::Func(int a)
But if the definiton is like what is produced by clicking Create Implementation
e.g.
namespace Refactor
{
}
void Refactor::RTest::Func(int a)
{
return a*10;
}
The result is correct.
Problem 2:
When function definition is like case 1 above(The definition is inside the namespace block)
After clicking Document Method:
//************************************
// Method: Func
// FullName: Refactor::RTest::Func
// Access: public
// Returns: int RTest::
// Qualifier:
// Parameter: int a
//************************************
The return type is wrong