solidity/test/libsolidity/syntaxTests/array/slice/member_access.sol
2022-04-01 23:41:18 -05:00

9 lines
255 B
Solidity

// Used to cause ICE
contract C {
function f(uint[] calldata x) external pure {
x[1:2].a;
}
}
// ----
// TypeError 9582: (92-100='x[1:2].a'): Member "a" not found or not visible after argument-dependent lookup in uint256[] calldata slice.