Skip to content

Simplify generate-constructor logic for delegated constructors.#48821

Merged
8 commits merged intodotnet:masterfrom
CyrusNajmabadi:simplifyGenConstructor
Oct 22, 2020
Merged

Simplify generate-constructor logic for delegated constructors.#48821
8 commits merged intodotnet:masterfrom
CyrusNajmabadi:simplifyGenConstructor

Conversation

@CyrusNajmabadi
Copy link
Contributor

The logic here is just crazy complex. Replacing with something much simpler and easier to maintain.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner October 21, 2020 19:33
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Public Sub New(v1 As Boolean, v2 As Integer)
Me.v1 = v1
Me.v2 = v2
End Sub
Copy link
Contributor Author

Choose a reason for hiding this comment

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

honestly, i cannot even wrap my head around the old behavior. the user was generating a call to new ...(true, 1). how that could generate a constructor that took int, int is beyond me. We now sensibly generate bool, int.

Copy link
Member

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Well this is certainly easier to read :D

@ghost
Copy link

ghost commented Oct 22, 2020

Hello @CyrusNajmabadi!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

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 01fbb98 into dotnet:master Oct 22, 2020
@ghost ghost added this to the Next milestone Oct 22, 2020
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the simplifyGenConstructor branch April 11, 2021 18:23
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.

4 participants