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