mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
356 B
Solidity
18 lines
356 B
Solidity
|
contract C {
|
||
|
function f(uint n) public pure returns (uint) {
|
||
|
uint[][][] memory a = new uint[][][](2);
|
||
|
for (uint i = 0; i < 2; ++i)
|
||
|
{
|
||
|
a[i] = new uint[][](3);
|
||
|
for (uint j = 0; j < 3; ++j)
|
||
|
a[i][j] = new uint[](4);
|
||
|
}
|
||
|
a[1][1][1] = n;
|
||
|
uint[][] memory b = a[1];
|
||
|
uint[] memory c = b[1];
|
||
|
return c[1];
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f(uint256): 42 -> 42
|