solidity/test/libsolidity/syntaxTests/indexing/array_negative_index.sol
2018-10-10 23:18:32 +02:00

9 lines
183 B
Solidity

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.