Added few tests.

This commit is contained in:
Matheus Aguiar
2022-09-28 11:32:03 +02:00
committed by wechman
parent 3bd047f188
commit 58d19a51c6
5 changed files with 92 additions and 1 deletions
@@ -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