Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer
<T>() => {}
TSX error to Babel 8 (#14367)
- Loading branch information
1 parent
410c9ac
commit 4392e4f
Showing
4 changed files
with
100 additions
and
34 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
3 changes: 0 additions & 3 deletions
3
...ages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx-babel-7/output.json
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
4 changes: 3 additions & 1 deletion
4
packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
// Same as `generic`. Verify that JSX doesn't change things. | ||
// Generics without trailing comma are disallowed in JSX | ||
<T>(a: T): T => a; | ||
|
||
<T,>(a: T): T => a; |
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