Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow
<T>(a => b)
when parsing Flow (#13645)
- Loading branch information
1 parent
b15ec33
commit 9d0aa1e
Showing
5 changed files
with
16 additions
and
6 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
1 change: 1 addition & 0 deletions
1
packages/babel-parser/test/fixtures/flow/type-generics/wrong-arrow-parens-no-jsx/input.js
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<T>(a => b); |
5 changes: 5 additions & 0 deletions
5
...ages/babel-parser/test/fixtures/flow/type-generics/wrong-arrow-parens-no-jsx/options.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["flow"], | ||
"throws": "Expected an arrow function after this type parameter declaration. (1:0)" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-parser/test/fixtures/flow/type-generics/wrong-arrow-parens/input.js
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<T>(a => b); |
3 changes: 3 additions & 0 deletions
3
packages/babel-parser/test/fixtures/flow/type-generics/wrong-arrow-parens/options.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"throws": "Unterminated JSX contents. (1:3)" | ||
} |