diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-01-04 02:40:50 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-01-12 01:28:11 +0800 |
commit | bd6e65a89c1e90a01740c61af84b17be7ade26a0 (patch) | |
tree | 62032da15c8d9a713a976d9a59a7254051c3a83d /docs/contracts.rst | |
parent | 9602318eab7affca78b8b5db018e9e646f40e84e (diff) | |
download | dexon-solidity-bd6e65a89c1e90a01740c61af84b17be7ade26a0.tar.gz dexon-solidity-bd6e65a89c1e90a01740c61af84b17be7ade26a0.tar.zst dexon-solidity-bd6e65a89c1e90a01740c61af84b17be7ade26a0.zip |
docs: document the resriction about a function and an event of the same name, and so on
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index e82b7495..edc42c3d 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -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 ****************** |