-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Passing a value to a not nullable parameter should update state #43383
Comments
Thanks, @jcouv. |
From LDM today we're going to align behavior of |
My interpretation of this is that while a not-nullable parameter updates the argument state, an oblivious parameter does not update the argument state. |
Correct |
LDM is discussing details of the proposal, but we agreed on core scenario:
This means that
void M(string s)
would behave likevoid M([NotNull] string s)
behaves today.FYI @stephentoub
The latest proposal is we can change the nullable state of a slot when either (1) we give a warning, or (2) you apply the
!
operator.Update: LDM decision below
The text was updated successfully, but these errors were encountered: