mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
260 B
Solidity
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();
|
||
|
}
|
||
|
}
|