solidity/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol

6 lines
249 B
Solidity

contract A { function mod(uint a) public { } }
contract B is A { modifier mod(uint a) { _; } }
// ----
// DeclarationError: (65-92): Identifier already declared.
// TypeError: (65-92): Override changes function or public state variable to modifier.