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

Abstract properties #7184

Merged
merged 3 commits into from
Feb 22, 2016
Merged

Abstract properties #7184

merged 3 commits into from
Feb 22, 2016

Conversation

sandersn
Copy link
Member

Fixes #4669.

The change is extremely small because almost all the machinery is already in place. I decided to give an error for an accessor with one abstract and one not-abstract member. I couldn't come up with a good example with mixed abstractness.

Almost all the infrastructure is in place, so I just allowed abstract
properties+accessors and added an error when abstract accessors do not
have the same abstractness specified.
1. Positive tests.
2. Negative tests.
3. Update error messages.
4. Remove errors from conformance test.
@RyanCavanaugh
Copy link
Member

👍

@@ -1843,6 +1843,10 @@
"category": "Error",
"code": 2675
},
"Accessors must both be abstract or not abstract.": {
Copy link
Member

Choose a reason for hiding this comment

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

non-abstract

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

sandersn added a commit that referenced this pull request Feb 22, 2016
@sandersn sandersn merged commit a769ba7 into master Feb 22, 2016
@sandersn sandersn deleted the abstract-properties branch February 22, 2016 22:17
@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