Skip to content

Fix #8795: make properties defined in optional constructor parameters optional #8825

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

Merged
merged 3 commits into from
May 26, 2016

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented May 25, 2016

Fixes #8795

@ahejlsberg ahejlsberg changed the title Fix #8795: make properties defined in optional constructor paramters optional Fix #8795: make properties defined in optional constructor parameters optional May 25, 2016
@ahejlsberg
Copy link
Member

👍

v = v2; // Should fail
var v3: { x } = new C; // Should succeed
v = v2; // Should succeed
var v3: { x } = new C; // Should fail
Copy link
Member

Choose a reason for hiding this comment

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

Every time these comments need to be updated, I wonder if they ever should have been there to begin with. You have already have the error messages.

@mhegazy mhegazy merged commit 6173696 into master May 26, 2016
@mhegazy mhegazy deleted the Fix8795-1 branch May 26, 2016 00:11
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants