aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol
blob: a64c2790d1af1c58031461d20c6cedd74ec261b1 (plain) (blame)
1
2
3
4
5
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.