solidity/test/libsolidity/semanticTests/freeFunctions/easy.sol
2023-05-11 10:56:55 -05:00

12 lines
191 B
Solidity

function add(uint a, uint b) pure returns (uint) {
return a + b;
}
contract C {
function f(uint x) public pure returns (uint) {
return add(x, 2);
}
}
// ----
// f(uint256): 7 -> 9