Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Fix accidental fall-through in Flow type parsing. #82

Merged
merged 1 commit into from
Jul 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/plugins/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ pp.flowParsePrimaryType = function () {

return this.finishNode(node, "FunctionTypeAnnotation");
}
break;

case tt.parenL:
this.next();
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/flow/type-annotations/106/actual.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var f: >x:int) => string;
3 changes: 3 additions & 0 deletions test/fixtures/flow/type-annotations/106/options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"throws": "Unexpected token (1:7)"
}