solidity/test/libsolidity/semanticTests/array/inline_array_storage_to_memory_conversion_ints.sol
2020-07-20 17:17:19 +02:00

14 lines
230 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]);
}
}
// ====
// compileViaYul: also
// ----
// f() -> 3, 6