solidity/test/libsolidity/semanticTests/array/inline_array_storage_to_memory_conversion_ints.sol
2020-03-19 14:42:25 +01:00

12 lines
199 B
Solidity

contract C {
function f() public returns (uint256 x, uint256 y) {
x = 3;
y = 6;
uint256[2] memory z = [x, y];
return (z[0], z[1]);
}
}
// ----
// f() -> 3, 6