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

Grammar error on export type * #37064

Merged
merged 4 commits into from
Feb 28, 2020
Merged

Conversation

andrewbranch
Copy link
Member

@andrewbranch andrewbranch commented Feb 27, 2020

Fixes #36966

The first commit added the missing calls to markSymbolOfAliasDeclarationIfTypeOnly so as to recognize export type * forms as type-only while simultaneously disallowing it with a grammar error. Mostly I was curious how close we were to supporting export type *, and it appears that it’s only a couple extra lines. Afterwards, I reverted the extra calls because it created two errors where one would suffice.

@andrewbranch andrewbranch marked this pull request as ready for review February 27, 2020 19:36
@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-3.8

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 28, 2020

Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into release-3.8 on this PR at 0c7831d. You can monitor the build here.

@andrewbranch andrewbranch merged commit 0a6ee77 into microsoft:master Feb 28, 2020
@typescript-bot
Copy link
Collaborator

Hey @DanielRosenwasser, I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.8 manually.

@andrewbranch andrewbranch deleted the bug/36966 branch February 28, 2020 00:35
@andrewbranch
Copy link
Member Author

Did I mess that up by merging it?

@typescript-bot cherry-pick this into release-3.8

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 28, 2020

Heya @andrewbranch, I've started to run the task to cherry-pick this into release-3.8 on this PR at 0c7831d. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Hey @andrewbranch, I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.8 manually.

andrewbranch added a commit to andrewbranch/TypeScript that referenced this pull request Feb 28, 2020
andrewbranch added a commit that referenced this pull request Feb 28, 2020
* Fix renaming an ExportSpecifier name when propertyName is present (#36790)

* Fix renaming exportSpecifier name when propertyName is present

* Add baseline test for name without propertyName too

* Set correct pos for NamespaceExport (#36794)

* Set correct pos for NamespaceExport

* Update tests

* Cherry-pick PR #37064 into release-3.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"export type * as namespace" also exports value
4 participants