diff --git a/test/libsolidity/syntaxTests/modifiers/modifier_overrides_variable.sol b/test/libsolidity/syntaxTests/modifiers/modifier_overrides_variable.sol new file mode 100644 index 000000000..1f170601f --- /dev/null +++ b/test/libsolidity/syntaxTests/modifiers/modifier_overrides_variable.sol @@ -0,0 +1,5 @@ +contract A { modifier mod(uint a) { _; } } +contract B is A { uint public mod; } +// ---- +// DeclarationError 9097: (61-76): Identifier already declared. +// TypeError 1456: (61-76): Override changes modifier to public state variable.