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

14 lines
230 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]);
}
}
2020-07-20 15:17:19 +00:00
// ====
// compileViaYul: also
// ----
// f() -> 3, 6