Parse arrows with params annotations in conditional expressions (#10669)

This commit is contained in:
Nicolò Ribaudo
2019-11-07 02:18:36 +03:00
committed by GitHub
parent bdb4318f47
commit 9082e68d6f
5 changed files with 476 additions and 0 deletions

View File

@@ -2061,6 +2061,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
return node.operator === "=";
case "ParenthesizedExpression":
case "TypeCastExpression":
return this.isAssignable(node.expression);
case "MemberExpression":