solidity/test/libsolidity/syntaxTests/using/using_free_functions.sol

17 lines
260 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
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();
}
}