✨ Skip nullable parameters when doing GuardClauseAssertion #1328
Labels
feature request
An idea for a change, aimed at impoving quality of life
Idioms
An issue related to idiomatic assertions
Milestone
Description
With the most recent Reflection API it's possible to retrieve nullability info about code. So we can use that nullability info in
GuardClauseAssertion
to not assert that nullable parameters must be null.Example
We can be smart about
arg2
and skip null verification for it, as we know it can be null.The text was updated successfully, but these errors were encountered: