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

[Emit] New should not be used as a name of function expression when emitting accessors #43

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

tests\cases\conformance\types\typeRelationships\typeAndMemberIdentity\objectTypesIdentityWithConstructSignatures2.js

new compiler generates invalid code:

var b = { new: function new(x) {
return '';
} };
@vladima
Copy link
Contributor

vladima commented Jul 17, 2014

fixed in 42183cf

@vladima vladima closed this as completed Jul 17, 2014
@vladima vladima removed the Fixed label Aug 5, 2014
@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
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants