Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE0031 Use null propagation - not suggested when parentheses present #49517

Closed
xtqqczze opened this issue Nov 20, 2020 · 0 comments · Fixed by #50397
Closed

IDE0031 Use null propagation - not suggested when parentheses present #49517

xtqqczze opened this issue Nov 20, 2020 · 0 comments · Fixed by #50397
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@xtqqczze
Copy link

Steps to Reproduce:

var v = (o != null) ? (o.p) : null;

Expected Behavior:

var v = (o?.p);
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 20, 2020
@jinujoseph jinujoseph added Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 9, 2020
@jinujoseph jinujoseph added this to the Backlog milestone Dec 9, 2020
huoyaoyuan added a commit to huoyaoyuan/roslyn that referenced this issue Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants