Refine the test for "Forbidden using command chain expression in array initializer to avoid ambiguities" further
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/21e0148d Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/21e0148d Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/21e0148d Branch: refs/heads/master Commit: 21e0148d0870eec7f2c3ab0f0cb5fdc92e754d15 Parents: 30b810c Author: Daniel Sun <[email protected]> Authored: Sat Aug 18 16:03:46 2018 +0800 Committer: Daniel Sun <[email protected]> Committed: Sat Aug 18 16:03:46 2018 +0800 ---------------------------------------------------------------------- .../src/test/resources/fail/CommandExpression_01x.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/21e0148d/subprojects/parser-antlr4/src/test/resources/fail/CommandExpression_01x.groovy ---------------------------------------------------------------------- diff --git a/subprojects/parser-antlr4/src/test/resources/fail/CommandExpression_01x.groovy b/subprojects/parser-antlr4/src/test/resources/fail/CommandExpression_01x.groovy index 3c47bb3..262d997 100644 --- a/subprojects/parser-antlr4/src/test/resources/fail/CommandExpression_01x.groovy +++ b/subprojects/parser-antlr4/src/test/resources/fail/CommandExpression_01x.groovy @@ -17,5 +17,8 @@ * under the License. */ -def a(b, c, d) { 1 } +def a(x, y, z) { 1 } +def b = 1 +def c = 2 +def d = 3 new int[] { a b, c, d }
