Additional tests for using for directive

This commit is contained in:
wechman
2022-09-28 13:07:59 +02:00
parent 6ebefdd1f8
commit b7d5d6bfaf
4 changed files with 69 additions and 0 deletions
@@ -0,0 +1,13 @@
type Int is int32;
using {add as +, add as +} for Int;
function add(Int, Int) pure returns(Int) {
return Int.wrap(0);
}
function f() pure {
Int.wrap(0) + Int.wrap(0);
}
// ----
@@ -0,0 +1,14 @@
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);
}
// ----