aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/array_negative_index.sol
blob: 019d023b56c70bb5c9d7abab0467ce16c9736eef (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                
contract C {
  function f() public {
    bytes[32] memory a;
    a[-1];
  }
}
// ----
// TypeError: (67-69): Type int_const -1 is not implicitly convertible to expected type uint256.