solidity/test/libsolidity/semanticTests/array/array_memory_create.sol
2022-11-10 22:21:15 +01:00

12 lines
231 B
Solidity

contract C {
function create(uint256 len) public returns (uint256)
{
uint[] memory array = new uint[](len);
return array.length;
}
}
// ----
// create(uint256): 0 -> 0
// create(uint256): 7 -> 7
// create(uint256): 10 -> 10