Regression in .NET 9 RC2: IDE0052 reports false positive with source-generated method #75483
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used:
.NET 9 RC2
Steps to Reproduce:
After updating from .NET 8 to .NET 9 RC2, we're getting a false positive on this line:
The private field is used by the source-generated
LogDecrypt
logger method, so the warning should not appear.To reproduce, clone the repo at https://github.com/SteeltoeOSS/Steeltoe, check out branch
try-net90
, opensrc/Steeltoe.All.sln
in Visual Studio 2022 v17.12 (latest preview) and build.Diagnostic Id:
IDE0052
Expected Behavior:
No warning, which is the behavior in .NET 8.
Actual Behavior:
A warning appears during build.
The text was updated successfully, but these errors were encountered: