-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
I noticed a bug in flow with this snippet, while trying to fix the same bug in babel/babylon.
let y = a ? (b) : c => d;Flow creates an ast that looks like this:
VariableDeclerator
-> ConditionalExpression
-> consequent: ArrowFunctionExpression((b) : c => d)
-> alternate: Literal(null)
but it should be
VariableDeclerator
-> ConditionalExpression
-> consequent: Identifier(b)
-> alternate: ArrowFunctionExpression(c => d)
Tested with flow-parser 0.26 (the latest version on npm)
Reactions are currently unavailable