From 204066f58c3284781cf840892fc53799832f1455 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 2 Feb 2021 11:39:01 +0100 Subject: [PATCH] fixup! Syntax for custom errors. --- test/libsolidity/syntaxTests/errors/name_parenthesized.sol | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/libsolidity/syntaxTests/errors/name_parenthesized.sol diff --git a/test/libsolidity/syntaxTests/errors/name_parenthesized.sol b/test/libsolidity/syntaxTests/errors/name_parenthesized.sol new file mode 100644 index 000000000..58034e7f6 --- /dev/null +++ b/test/libsolidity/syntaxTests/errors/name_parenthesized.sol @@ -0,0 +1,6 @@ +error E(); +function f() pure { + revert((E)()); +} +// ---- +// TypeError 4423: (42-47): Expected error or string.