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.