From ad41c3b14f5cf563db7efa8f08756580b4fbd775 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 22 Apr 2013 17:31:29 -0500 Subject: [PATCH] Assignments can appear in the middle of a ternary expression --- tool/test/org/antlr/v4/test/Java.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/test/org/antlr/v4/test/Java.g4 b/tool/test/org/antlr/v4/test/Java.g4 index 27b94f3e1..42ff42a68 100644 --- a/tool/test/org/antlr/v4/test/Java.g4 +++ b/tool/test/org/antlr/v4/test/Java.g4 @@ -759,7 +759,7 @@ assignmentOperator ; conditionalExpression - : conditionalOrExpression ( '?' conditionalExpression ':' conditionalExpression )? + : conditionalOrExpression ( '?' expression ':' conditionalExpression )? ; conditionalOrExpression