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

dotnet_style_null_propagation = true:suggestion reporting a warning #51849

Closed
adityapatwardhan opened this issue Mar 12, 2021 · 2 comments
Closed
Assignees
Labels
Area-IDE Bug fabric-bot-test Testing the impact of changes to the fabric bot Need More Info The issue needs more information to proceed.
Milestone

Comments

@adityapatwardhan
Copy link

Version Used: .NET 6 preview.2 SDK

Steps to Reproduce:

  1. Use .NET 6 preview.2 SDK
  2. Have the project file with <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  3. Have code like:
return (runspacePool != null) ? (runspacePool.RemoteRunspacePoolInternal) : null;
  1. Build the console app with runtime as linux-x64 or osx-x64 for error and win7-x64 for no error.

Expected Behavior: No warning emitted.

Actual Behavior: Warning emitted only on Linux and macOS builds not Windows

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 12, 2021
@jinujoseph jinujoseph added Bug Investigation Required and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 16, 2021
@jinujoseph jinujoseph added this to the 16.10 milestone Mar 16, 2021
@mavasani
Copy link
Contributor

I am unable to reproduce this issue. @adityapatwardhan Can you please attach a simple repro project? Also note that specifying :severity suffix as part of code style option specification is not recommended, instead please use the dotnet_diagnostic.ID.severity syntax . More details at #44201

@mavasani mavasani added Need More Info The issue needs more information to proceed. and removed Investigation Required labels Apr 19, 2021
@mavasani mavasani modified the milestones: 16.10, Backlog Apr 19, 2021
@ghost ghost added the fabric-bot-test Testing the impact of changes to the fabric bot label Aug 10, 2021
@ghost ghost closed this as completed Sep 15, 2021
@ghost
Copy link

ghost commented Sep 15, 2021

Closing this issue as we've seen no reply to the request for more information. If you are able to get the requested information, please add it to the issue and we will retriage it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug fabric-bot-test Testing the impact of changes to the fabric bot Need More Info The issue needs more information to proceed.
Projects
None yet
Development

No branches or pull requests

4 participants