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.