solidity/test/libsolidity/semanticTests/array/create_memory_byte_array.sol
2022-05-19 20:23:28 +02:00

12 lines
211 B
Solidity

contract C {
function f() public returns (bytes1) {
bytes memory x = new bytes(35);
assert(x.length == 35);
x[34] = "A";
return (x[34]);
}
}
// ====
// ----
// f() -> "A"