solidity/test/libsolidity/ASTJSON/custom_operator.sol
2022-09-28 13:09:16 +02:00

13 lines
219 B
Solidity

type UInt is uint8;
using {add as +} for UInt;
function add(UInt, UInt) pure returns (UInt) {
return UInt.wrap(0);
}
contract C {
function f() public pure {
UInt.wrap(0) + UInt.wrap(1);
}
}
// ----