-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: more robust generic arrow handling (#30)
fixes #29 Given: ```ts return<T> (v: T) => v ``` We need to ensure the arrow function is still returned after erasing the type argument. This is achieved by moving the opening parentheses up: ```js return( v: T) => v ``` **Testing performed** Additional test fixtures have been added. --------- Signed-off-by: Ashley Claymore <[email protected]>
- Loading branch information
Showing
5 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/fixture/output/async-generic-arrow.js → tests/fixture/output/arrow-functions.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.