docs: document the resriction about a function and an event of the same name, and so on

This commit is contained in:
Yoichi Hirai 2017-01-03 19:40:50 +01:00
parent 9602318eab
commit bd6e65a89c
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -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
******************