solidity/test/libsolidity/syntaxTests/using/using_free_functions.sol
2022-03-14 12:33:44 +01:00

17 lines
260 B
Solidity

function id(uint x) pure returns (uint) {
return x;
}
function zero(uint) pure returns (uint) {
return 0;
}
using {id} for uint;
contract C {
using {zero} for uint;
function g(uint z) pure external {
z.zero();
z.id();
}
}