Skip to content

Fix visitEachChild for signatures #15377

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
Apr 25, 2017
Merged

Fix visitEachChild for signatures #15377

merged 1 commit into from
Apr 25, 2017

Conversation

rbuckton
Copy link
Contributor

Fixes an issue where calling visitEachChild on a function type, constructor type, call signature, construct signature, method signature, or index signature was causing a debug assertion.

Fixes #15192

@rbuckton rbuckton requested review from aozgaa and a user April 25, 2017 18:04
@rbuckton rbuckton added this to the TypeScript 2.4 milestone Apr 25, 2017
@ghost
Copy link

ghost commented Apr 25, 2017

How does this affect code like <T>(x: any) => x is T? Does that need a lexical environment for x or T?

@rbuckton
Copy link
Contributor Author

Lexical environments for the emitter are only ever needed to hoist temporary variables when emitting javascript. Using them for types is unnecessary.

@rbuckton rbuckton merged commit 15df12d into master Apr 25, 2017
@rbuckton rbuckton deleted the fix15192 branch April 25, 2017 20:56
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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.

2 participants