You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method GetById2 shall generate CS8602 because property Id has type TId?.
Method GetById1 shall not generate CS8602 because property Id has type TId.
Actual behavior
Both GetById1 and GetById2 will generate CS8602.
The text was updated successfully, but these errors were encountered:
wsy
changed the title
[CS8602] False positive on property of generic interface: 'Dereference of a possibly null reference'
[CS8602] 'Dereference of a possibly null reference': False positive on property of generic interface
Sep 3, 2024
Analyzer
Diagnostic ID: CS8602:
Dereference of a possibly null reference
Analyzer source
SDK: Built-in CA analyzers in .NET 8 SDK or later
Version: SDK 8.0.400
Describe the bug
Steps To Reproduce
Sample code
Expected behavior
Method
GetById2
shall generate CS8602 because propertyId
has typeTId?
.Method
GetById1
shall not generate CS8602 because propertyId
has typeTId
.Actual behavior
Both
GetById1
andGetById2
will generate CS8602.The text was updated successfully, but these errors were encountered: