VAX v.10.9.2291.5.
VS2017 v.15.9.0.
Project configuration: Release x64 console app.
ORIGINAL CODE:
struct Node
{
Node(uint64_t key)
: key(key)
{
}
uint64_t key;
};
CASE1: I select "key" in constructor parameter list and Rename it to "state". I expect to get the following code:
struct Node
{
Node(uint64_t state)
: key(state)
{
}
uint64_t key;
};
but get the following (which is obviously not compiled):
struct Node
{
Node(uint64_t state)
: state(state)
{
}
uint64_t key;
};
CASE2: When I select "key" member and Rename it to "state" (in the same original code). I expect to get:
struct Node
{
Node(uint64_t key)
: state(key)
{
}
uint64_t state;
};
but get the following (which is obviously not compiled):
struct Node
{
Node(uint64_t key)
: key(key)
{
}
uint64_t state;
};
In both cases other entity could be shown in candidates list but left unchecked so that user could select it if they want.