Adds syntax tests for array index access.

This commit is contained in:
Erik Kundt
2018-10-10 23:18:32 +02:00
parent 2feaacba9d
commit 3e24a3d81b
5 changed files with 31 additions and 0 deletions
@@ -0,0 +1,8 @@
contract C {
function f() public {
bytes[32] memory a;
a[888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888];
}
}
// ----
// TypeError: (67-178): Type int_const 8888...(103 digits omitted)...8888 is not implicitly convertible to expected type uint256.