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

Store nested conversion in the target-typed switch expression conversion #40107

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

gafter
Copy link
Member

@gafter gafter commented Dec 3, 2019

Fixes #39947

@gafter gafter added this to the 16.5 milestone Dec 3, 2019
@gafter gafter requested a review from a team as a code owner December 3, 2019 19:02
@gafter gafter self-assigned this Dec 3, 2019
@@ -1267,7 +1267,7 @@
<!-- Converted switch expression must have a type, even if that's `void` for a statement. -->
<Field Name="Type" Type="TypeSymbol" Override="true" Null="disallow"/>
<!-- Natural type is preserved for the purpose of semantic model. Can be `null`. -->
<Field Name="NaturalTypeOpt" Type="TypeSymbol" Null="allow"/>
<Field Name="NaturalTypeOpt" Type="TypeSymbol?" Null="allow"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like a nullable annotation should be used for any reference type field with Null="allow". Do we have a tracking issue for updating the generator/BoundNodes.xml to do this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not that I know if.

Copy link
Contributor

@RikkiGibson RikkiGibson left a comment

Choose a reason for hiding this comment

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

:shipit:

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.

Switch expression conversion should store nested conversions
3 participants