Version Used: Visual Studio 17.14.9 Preview 1.0
Steps to Reproduce:
- Write the code:
var p = new List<int[]> { ([]) };
- Press Ctrl+. — menu appears with “Remove unnecessary parentheses” suggestion
- Apply “Remove unnecessary parentheses” suggestion
Expected Behavior:
The suggestion should not be shown because it is not applicable because the parentheses are not unnecessary.
Actual Behavior:
The suggestion changes the code to var p = new List<int[]> { [] };, which does not compile (“Syntax error; value expected”).