Fix bug in constant evaluator.

This commit is contained in:
chriseth
2020-12-09 15:50:53 +01:00
parent fca8026250
commit 251f2a4d93
3 changed files with 10 additions and 1 deletions
@@ -0,0 +1,3 @@
int[L] constant L = 6;
// ----
// TypeError 5462: (4-5): Invalid array length, expected integer literal or constant expression.
@@ -0,0 +1,5 @@
contract C {
int[L] constant L = 6;
}
// ----
// TypeError 5462: (21-22): Invalid array length, expected integer literal or constant expression.