I have set up an example for this, using the same code I used for one of your other threads, giving me this test code:
class TestFelineParts
{
public int Parts { get; set; }
public int TotalPieces { get; set; }
public int MarkerLength { get; set; }
}
class feline_test_general
{
private void testingIntVariableBrackets()
{
TestFelineParts parts = new TestFelineParts { Parts = 5, TotalPieces = 3, MarkerLength = 23 };
TestFelineParts bp = new TestFelineParts { Parts = 2, TotalPieces = 1, MarkerLength = 21 };
int partsAlreadyProduced;
partsAlreadyProduced = (parts.Parts < 0) ? bp.TotalPieces - parts.Parts : parts.Parts;
// Test - place keyboard cursor into "UpdateUsage" and press Alt-Shift-Q
// for VA context menu, should offer both:
// "Create Method" and "Introduce Variable..."
// NOTE - "Introduce Variable..." creates a new variable to accept the return of this function call!
parts.UpdateUsage(bp.MarkerLength);
}
}
can you please try this on your system and see what results you get? Also, if you still have access to a similar error, try running "Introduce Variable" and see what VA actually does? Adding a variable to hold the return type of the function may be "unexpected", but its not an unreasonable guess. But it should be paired with an option to create the unknown function.