mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added few tests.
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
type MyInt is int;
|
||||
using {add as +} for MyInt;
|
||||
|
||||
function add(MyInt, MyInt) pure returns (bool) {
|
||||
return true;
|
||||
}
|
||||
|
||||
contract C {
|
||||
function f() public pure returns (bool t) {
|
||||
t = MyInt.wrap(2) + MyInt.wrap(7);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> true
|
||||
Reference in New Issue
Block a user