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