solidity/test/libsolidity/semanticTests/freeFunctions/easy.sol
2022-05-19 20:23:28 +02:00

14 lines
223 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);
}
}
// ====
// compileToEwasm: also
// ----
// f(uint256): 7 -> 9