Fix issues with flow-types and async function (#95)

the typeAnnotation was not correctly resolved in async
functions
This commit is contained in:
Daniel Tschinder
2016-08-23 23:22:01 +02:00
committed by Henry Zhu
parent 2cfae60b15
commit db0705bc51
4 changed files with 207 additions and 2 deletions

View File

@@ -916,7 +916,7 @@ export default function (instance) {
});
// parse an item inside a expression list eg. `(NODE, NODE)` where NODE represents
// the position where this function is cal;ed
// the position where this function is called
instance.extend("parseExprListItem", function (inner) {
return function (allowEmpty, refShorthandDefaultPos) {
let container = this.startNode();