Skip to content

Gracefully handle accessor declarations in ambient classes. #256

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 1 commit into from
Jul 29, 2014

Conversation

DanielRosenwasser
Copy link
Member

Fixes #139.

@danquirk
Copy link
Member

Test failure was due to a strange timeout we've seen once before with Travis. Shouldn't be an issue, likely will succeed if you happen to push any further changes.

@DanielRosenwasser
Copy link
Member Author

I forced an update, let's see how it do.

@@ -4948,7 +4948,7 @@ module ts {
}

checkSourceElement(node.body);
if (node.type) {
if (node.type && !isAccessor(node.kind)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you still need to do this for setters?

Copy link
Member Author

Choose a reason for hiding this comment

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

Setters don't need to have their bodies checked - they don't return anything.

@mhegazy
Copy link
Contributor

mhegazy commented Jul 29, 2014

👍

DanielRosenwasser added a commit that referenced this pull request Jul 29, 2014
Gracefully handle accessor declarations in ambient classes.
@DanielRosenwasser DanielRosenwasser merged commit fce3bdd into master Jul 29, 2014
@DanielRosenwasser DanielRosenwasser deleted the ambientAccessorErrors branch July 29, 2014 20:52
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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.

Better error messages for ambient accessors.
5 participants