Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support [Maybe/NotNullWhen(...)] on by-value and in parameters #41569

Open
jcouv opened this issue Feb 11, 2020 · 0 comments
Open

Support [Maybe/NotNullWhen(...)] on by-value and in parameters #41569

jcouv opened this issue Feb 11, 2020 · 0 comments

Comments

@jcouv
Copy link
Member

jcouv commented Feb 11, 2020

We currently give a special meaning to [NotNull] and [MaybeNull] on input parameters (see LDM notes), but we don't for their conditional counterparts.
We should consider doing that too, assuming that we can come up with a compelling example.

Note: if we do this, we should consider enforcement within method bodies and also in OHI.

Tagging @RikkiGibson who raised the question in #41336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant