From 23bea46d04be2151f47cde8dd49738b3c506dc42 Mon Sep 17 00:00:00 2001 From: wechman Date: Mon, 19 Sep 2022 14:37:55 +0200 Subject: [PATCH] Operator bound to function pointer test case --- .../custom/operator_bound_to_function_pointer.sol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/libsolidity/syntaxTests/operators/custom/operator_bound_to_function_pointer.sol diff --git a/test/libsolidity/syntaxTests/operators/custom/operator_bound_to_function_pointer.sol b/test/libsolidity/syntaxTests/operators/custom/operator_bound_to_function_pointer.sol new file mode 100644 index 000000000..b479c383b --- /dev/null +++ b/test/libsolidity/syntaxTests/operators/custom/operator_bound_to_function_pointer.sol @@ -0,0 +1,9 @@ +type Int is int8; + +contract C { + function(Int, Int) external returns (Int) ptr; + using {ptr as +} for Int; +} + +// ---- +// TypeError 8187: (94-97): Expected function name.