Strange. I am assuming you are working inside an Unreal Engine solution. I have a very simple UE solution here, and I have added a simple character class to the solution. In the header file, I have:
UFUNCTION(BlueprintNativeEvent)
void TestVA(int32 paramOne, int32 paramTwo, int32 paramThree, int32 paramFour);
and in the matching cpp file I have the following very simple test cases:
void AFelineCharacter::TestVA_Implementation(int32 paramOne, int32 paramTwo, int32 paramThree, int32 paramFour)
{
int simpleLocalVar = 2;
// test 1 - select the next 4 lines, and use Extract Method
// new function returning int is created in this cpp file
for (int n = 0; n < 10; n++)
{
simpleLocalVar += n;
}
char *pszTest = "hello world";
// test 2 - select the next 4 lines, and use Extract Method
// new function returning char * is created in this cpp file
while (NULL != pszTest)
{
++pszTest
}
}
can you please try this simple test on your system and see what results you get?