Skip to content

Set default value for value-type ctor params properly#43831

Merged
layomia merged 2 commits intodotnet:masterfrom
layomia:CtorParamDefault
Oct 30, 2020
Merged

Set default value for value-type ctor params properly#43831
layomia merged 2 commits intodotnet:masterfrom
layomia:CtorParamDefault

Conversation

@layomia
Copy link
Copy Markdown
Contributor

@layomia layomia commented Oct 26, 2020

Fixes #43757.

@layomia layomia added this to the 6.0.0 milestone Oct 26, 2020
@layomia layomia requested review from jozkee and steveharter October 26, 2020 17:28
@layomia layomia requested a review from ahsonkhan as a code owner October 26, 2020 17:28
@layomia layomia self-assigned this Oct 26, 2020
@layomia layomia merged commit c0b645d into dotnet:master Oct 30, 2020
@layomia layomia deleted the CtorParamDefault branch October 30, 2020 18:38
@benaadams
Copy link
Copy Markdown
Member

Issue has come up again, should this be backported? #45221

layomia added a commit to layomia/dotnet_runtime that referenced this pull request Dec 2, 2020
* Set default value for value-type ctor params properly

* Address review feedback
layomia added a commit that referenced this pull request Dec 8, 2020
* Set default value for value-type ctor params properly

* Address review feedback
@ghost ghost locked as resolved and limited conversation to collaborators Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullReference when default is set as optional argument default for value-typed ctor parameter

4 participants