solidity/test/libsolidity/syntaxTests/array/nested_calldata_memory.sol
2020-11-24 14:57:45 +01:00

14 lines
334 B
Solidity

pragma abicoder v2;
contract Test {
struct shouldBug {
bytes[2] deadly;
}
function killer(bytes[2] calldata weapon) pure external {
shouldBug(weapon);
}
}
// ----
// UnimplementedFeatureError: Copying nested dynamic calldata arrays to memory is not implemented in the old code generator.