-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash with TypeScript overloaded constructors (#340)
Fixes #334 Constructors without bodies were correctly being marked as type tokens, but the class transformation code (to implement class fields and TS fields defined in constructor params) was incorrectly viewing it as a real constructor. Now, when checking if something matches the constructor keyword, we also make sure it's not a type token.
- Loading branch information
1 parent
f9aca57
commit e460053
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
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