mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
docs: document the resriction about a function and an event of the same name, and so on
This commit is contained in:
parent
9602318eab
commit
bd6e65a89c
@ -877,6 +877,13 @@ cannot be resolved.
|
||||
A simple rule to remember is to specify the base classes in
|
||||
the order from "most base-like" to "most derived".
|
||||
|
||||
Inheriting Different Kinds of Members of the Same Name
|
||||
======================================================
|
||||
|
||||
When the inheritance results in a contract with a function and a modifier of the same name, it is considered as an error.
|
||||
This error is produced also by an event and a modifier of the same name, and a function and an event of the same name.
|
||||
As an exception, a state variable accessor can override a public function.
|
||||
|
||||
.. index:: ! contract;abstract, ! abstract contract
|
||||
|
||||
******************
|
||||
|
Loading…
Reference in New Issue
Block a user