aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/fixedbytes_negative_index.sol
blob: 12399317863cf361ad3cf27ea001c8b44b7be6f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
  function f() public {
    bytes32 b;
    b[-1];
  }
}
// ----
// TypeError: (58-60): Type int_const -1 is not implicitly convertible to expected type uint256.
// TypeError: (56-61): Index expression cannot be represented as an unsigned integer.