From 616988da15c252d55ca98fa05a1b20faf66bf0e5 Mon Sep 17 00:00:00 2001 From: wechman Date: Mon, 8 Aug 2022 11:11:51 +0200 Subject: [PATCH] Test case for user operator bind a bound free function --- .../custom/operator_bind_a_bound_free_function.sol | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/libsolidity/syntaxTests/operators/custom/operator_bind_a_bound_free_function.sol diff --git a/test/libsolidity/syntaxTests/operators/custom/operator_bind_a_bound_free_function.sol b/test/libsolidity/syntaxTests/operators/custom/operator_bind_a_bound_free_function.sol new file mode 100644 index 000000000..3cd1c083e --- /dev/null +++ b/test/libsolidity/syntaxTests/operators/custom/operator_bind_a_bound_free_function.sol @@ -0,0 +1,12 @@ +type Int is uint; +using {f} for Int; + +Int constant v; +using {v.f as +} for Int; + +function f(Int) pure returns (Int) { + return Int.wrap(0); +} + +// ---- +// DeclarationError 7920: (61-64): Identifier not found or not unique.