solidity/test/libsolidity/semanticTests/array/inline_array_storage_to_memory_conversion_ints.sol

12 lines
199 B
Solidity
Raw Normal View History

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