Assignments can appear in the middle of a ternary expression

This commit is contained in:
Sam Harwell 2013-04-22 17:31:29 -05:00
parent 4b6d0d9ea2
commit ad41c3b14f
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ assignmentOperator
;
conditionalExpression
: conditionalOrExpression ( '?' conditionalExpression ':' conditionalExpression )?
: conditionalOrExpression ( '?' expression ':' conditionalExpression )?
;
conditionalOrExpression