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

6 lines
224 B
Solidity
Raw Normal View History

2018-03-16 11:45:12 +00:00
contract A { function mod(uint a) public { } }
contract B is A { modifier mod(uint a) { _; } }
// ----
2018-04-11 15:58:53 +00:00
// DeclarationError: (65-92): Identifier already declared.
// TypeError: (65-92): Override changes function to modifier.