solidity/test/libsolidity/semanticTests/types/assign_calldata_value_type.sol

12 lines
217 B
Solidity

contract C {
function f(uint256 x) public pure returns (uint256, uint256) {
uint256 b = x;
x = 42;
return (x, b);
}
}
// ====
// compileViaYul: also
// ----
// f(uint256): 23 -> 42, 23