solidity/test/libsolidity/syntaxTests/indexing/array_negative_index.sol
2022-04-01 23:41:18 -05:00

9 lines
252 B
Solidity

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