Improve error message for static array with size too large

This commit is contained in:
Ryan
2022-04-05 17:36:37 +02:00
committed by Kamil Śliwak
parent 0944e6853f
commit 3a17274691
6 changed files with 30 additions and 5 deletions
@@ -2,4 +2,4 @@ contract C {
bytes32[8**90] ids;
}
// ----
// TypeError 5462: (25-30): Invalid array length, expected integer literal or constant expression.
// TypeError 1847: (25-30): Array length too large, maximum is 2**256 - 1.