Test for binding user type operator to error

This commit is contained in:
wechman
2022-09-28 13:07:59 +02:00
parent 1218b207ef
commit f6543f772d
2 changed files with 12 additions and 19 deletions
@@ -0,0 +1,12 @@
type Int is int16;
using {f as +} for IntError;
error IntError();
function f(Int _a, Int _b) pure returns (Int) {
return Int.wrap(0);
}
// ----
// TypeError 5172: (39-47): Name has to refer to a user-defined value type, struct, enum or contract.