solidity/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol
2018-04-11 22:00:21 +02:00

6 lines
224 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 to modifier.