As @federicobond observed in #40 - fixing #29 (parse memory array allocation) by letting an expression between array brackets be optional is too permissive because
function test() {
uint[] memory a = new uint[](7);
a[];
}
now parses without complaining about a[]. Array constructors need their own rule.
As @federicobond observed in #40 - fixing #29 (parse memory array allocation) by letting an expression between array brackets be optional is too permissive because
now parses without complaining about
a[]
. Array constructors need their own rule.