Skip to content

isDeclarationName: Return false for LHS of import { x as y } and `e…#15741

Merged
1 commit merged into
masterfrom
import_propertyName_isWriteAccess
May 10, 2017
Merged

isDeclarationName: Return false for LHS of import { x as y } and `e…#15741
1 commit merged into
masterfrom
import_propertyName_isWriteAccess

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented May 10, 2017

Fixes #14005.
x in import { x as y } isn't the name of the declaration, y is.
Two places in checker.ts rely on the old behavior, so created isDeclarationNameOrImportPropertyName for those cases.

@ghost ghost merged commit 6932427 into master May 10, 2017
@ghost ghost deleted the import_propertyName_isWriteAccess branch May 10, 2017 23:30
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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