solidity/test/libsolidity/semanticTests/abiencodedecode/contract_array.sol

10 lines
232 B
Solidity
Raw Normal View History

2020-10-16 16:08:01 +00:00
contract C {
function f(bytes calldata x) public returns (C[] memory) {
return abi.decode(x, (C[]));
}
}
// ====
// compileViaYul: also
// ----
// f(bytes): 0x20, 0xA0, 0x20, 3, 0x01, 0x02, 0x03 -> 0x20, 3, 0x01, 0x02, 0x03