Skip to content

Fix "Tuple to Struct" named parameters being cased incorrectly#45667

Merged
9 commits merged intodotnet:masterfrom
davidwengier:TupleToStructFixArgumentNameCase
Jul 6, 2020
Merged

Fix "Tuple to Struct" named parameters being cased incorrectly#45667
9 commits merged intodotnet:masterfrom
davidwengier:TupleToStructFixArgumentNameCase

Conversation

@davidwengier
Copy link
Member

Fixes #45451

When converting a tuple to a struct the casing was changed for the parameters of the generated constructor but the call sites weren't changed resulting in a compile error.

Reviewing commit-by-commit might be best, as there were a few analyzer warnings to clean up, but not enough that I thought it was worth a separate PR.

@davidwengier davidwengier requested a review from a team July 6, 2020 05:47
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

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

Everything is a nit. So in this case the next step is up to you. If you are fine with the code and don't feel it needs changing, feel free to merge. Or, make any changes you feel are appropriate based on the review. A s long as you don't change anything deeply substantive (i.e. radically changing the approach here), you don't really need another review unless you want it :)

@davidwengier
Copy link
Member Author

Thanks for the review

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@ghost ghost merged commit 41ff575 into dotnet:master Jul 6, 2020
@jinujoseph jinujoseph added this to the 16.8.P1 milestone Jul 7, 2020
@davidwengier davidwengier deleted the TupleToStructFixArgumentNameCase branch July 10, 2020 09:32
This pull request was closed.
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.

'Convert to struct' refactoring bug, incorrect constructor call

3 participants