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
There is MaybeNullAttribute which can be applied to the parameter.
However there is counterpart for members.
I propose adding MemberMaybeNullAttribute which means the member might have null value.
This is the opposite of MemberNotNullAttribute.
Usage:
Suppose we have methods Set setting to a non null value and Clear setting null value.
I would like to tell compiler that this code has an issue:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
There is MaybeNullAttribute which can be applied to the parameter.
However there is counterpart for members.
I propose adding MemberMaybeNullAttribute which means the member might have null value.
This is the opposite of MemberNotNullAttribute.
Usage:
Suppose we have methods Set setting to a non null value and Clear setting null value.
I would like to tell compiler that this code has an issue:
Beta Was this translation helpful? Give feedback.
All reactions