mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
245 B
Solidity
12 lines
245 B
Solidity
|
type Int is int;
|
||
|
using {add as +} for Int global;
|
||
|
using {unsub as -} for Int global;
|
||
|
|
||
|
function add(Int, Int) pure returns (Int) {}
|
||
|
function unsub(Int) pure returns (Int) {}
|
||
|
|
||
|
function f() pure {
|
||
|
Int.wrap(0) + Int.wrap(0);
|
||
|
-Int.wrap(0);
|
||
|
}
|