-
Notifications
You must be signed in to change notification settings - Fork 4.2k
dotnet_style_null_propagation = true:suggestion reporting a warning #51849
Copy link
Copy link
Closed
Labels
Area-IDEBugNeed More InfoThe issue needs more information to proceed.The issue needs more information to proceed.fabric-bot-testTesting the impact of changes to the fabric botTesting the impact of changes to the fabric bot
Milestone
Description
Version Used: .NET 6 preview.2 SDK
Steps to Reproduce:
- Use .NET 6 preview.2 SDK
- Have the project file with
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> - Have code like:
return (runspacePool != null) ? (runspacePool.RemoteRunspacePoolInternal) : null;- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEBugNeed More InfoThe issue needs more information to proceed.The issue needs more information to proceed.fabric-bot-testTesting the impact of changes to the fabric botTesting the impact of changes to the fabric bot
Type
Fields
Give feedbackNo fields configured for issues without a type.