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

Document nullable disable for generated code #33432

Merged
merged 2 commits into from
Feb 20, 2019

Conversation

chsienki
Copy link
Member

No description provided.

@@ -318,6 +318,27 @@ new C?(); // error
new List<C?>(); // ok
```

## Generated code
Older code generation strategies may not be nullable aware.
Setting the project level nullable context to "enable" could result in many warnings that a user is unable to fix.
Copy link
Member

@jcouv jcouv Feb 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: project-level #Closed

## Generated code
Older code generation strategies may not be nullable aware.
Setting the project level nullable context to "enable" could result in many warnings that a user is unable to fix.
To support this scenario any syntax tree that is determined to be generated will have its nullable state explicitly set to "disable", regardless of the overall project state.
Copy link
Member

@jcouv jcouv Feb 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implicitly? #Closed

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some nits. Thanks (iteration 1)

@jcouv jcouv self-assigned this Feb 15, 2019
@jcouv jcouv added this to the 16.0.P4 milestone Feb 15, 2019
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 2)

@chsienki chsienki merged commit 32a475a into dotnet:dev16.0 Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants