Version Used: VS 2019 Community 16.11.2
Steps to Reproduce:
In the example code below, the cast is necessary to cast a dereferenced nint* into nint:
nint** ptr = GetDoublePointer();
nint value = (nint)(void*)*ptr;
Expected Behavior: No cast redundancy warning.
Actual Behavior: IDE0004 is reported.
Version Used: VS 2019 Community 16.11.2
Steps to Reproduce:
In the example code below, the cast is necessary to cast a dereferenced
nint*intonint:Expected Behavior: No cast redundancy warning.
Actual Behavior: IDE0004 is reported.