Fix S3253 FP: Conflicts with CS8983 - A 'struct' with field initializers must include an explicitly declared constructor. #8087
Labels
Area: C#
C# rules related issues.
Sprint: Hardening
Fix FPs/FNs/improvements
Type: False Positive
Rule IS triggered when it shouldn't be.
Milestone
Description
S3253 is raised on empty constructors that must be added to readonly structs containing field initializers, as per CS8983.
Repro steps
Expected behavior
S3253 is not raised, because the constructor is actually required.
Actual behavior
S3253 is raised.
Known workarounds
None. Suppress the rule.
Related information
The text was updated successfully, but these errors were encountered: