diff --git a/test/libsolidity/syntaxTests/operators/custom/call_operator_by_member_function.sol b/test/libsolidity/syntaxTests/operators/custom/call_operator_by_member_function.sol new file mode 100644 index 000000000..27a4c2d53 --- /dev/null +++ b/test/libsolidity/syntaxTests/operators/custom/call_operator_by_member_function.sol @@ -0,0 +1,15 @@ +type Int is int16; + +using {add as +} for Int; + +function add(Int, Int) returns (Int) { + return Int.wrap(0); +} + +function f() { + Int a; + a.add(a); +} + +// ---- +// TypeError 9582: (143-148): Member "add" not found or not visible after argument-dependent lookup in Int.