Assignments can appear in the middle of a ternary expression
This commit is contained in:
parent
4b6d0d9ea2
commit
ad41c3b14f
|
@ -759,7 +759,7 @@ assignmentOperator
|
||||||
;
|
;
|
||||||
|
|
||||||
conditionalExpression
|
conditionalExpression
|
||||||
: conditionalOrExpression ( '?' conditionalExpression ':' conditionalExpression )?
|
: conditionalOrExpression ( '?' expression ':' conditionalExpression )?
|
||||||
;
|
;
|
||||||
|
|
||||||
conditionalOrExpression
|
conditionalOrExpression
|
||||||
|
|
Loading…
Reference in New Issue