Description
//test.groovy
1 = [1,2,]
l.each
// end of test.groovy
When I run it, an exception is thrown "Could not use ']' at 1:10". If l = [1,2], it will ok.
But I think, groovy should support [1,2,] for in Java, array
{"a", "b", }is supported. So, I think groovy should support the similar syntax