mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
438 B
Solidity
14 lines
438 B
Solidity
|
pragma experimental ABIEncoderV2;
|
||
|
contract C {
|
||
|
function f(uint256[][2][] calldata x) external returns (uint256) {
|
||
|
return 42;
|
||
|
}
|
||
|
function g(uint256[][2][] calldata x) external returns (uint256) {
|
||
|
return this.f(x);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x40, 0x60, 0x00, 0x00 -> 42
|
||
|
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x00, 0x00 -> 42
|
||
|
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x00 -> FAILURE
|