solidity/test/libsolidity/semanticTests/array/fixed_bytes_length_access.sol
2023-05-11 10:56:55 -05:00

10 lines
218 B
Solidity

contract C {
bytes1 a;
function f(bytes32 x) public returns (uint256, uint256, uint256) {
return (x.length, bytes16(uint128(2)).length, a.length + 7);
}
}
// ----
// f(bytes32): "789" -> 32, 16, 8