mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6 lines
259 B
Solidity
6 lines
259 B
Solidity
contract A { function mod(uint a) public { } }
|
|
contract B is A { modifier mod(uint a) { _; } }
|
|
// ----
|
|
// DeclarationError 9097: (65-92): Identifier already declared.
|
|
// TypeError 5631: (65-92): Override changes function or public state variable to modifier.
|