aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-23 23:40:57 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-11-23 23:40:57 +0800
commitc33b098e55ee7c330823106f72bb1668522c912f (patch)
tree34badf13b2bcd07d4ee4587f17d124db2843fe6d /docs
parenta7c2509adfe57f106cb87ed024925751732b5412 (diff)
downloaddexon-solidity-c33b098e55ee7c330823106f72bb1668522c912f.tar.gz
dexon-solidity-c33b098e55ee7c330823106f72bb1668522c912f.tar.zst
dexon-solidity-c33b098e55ee7c330823106f72bb1668522c912f.zip
docs: add a description about the types of parameters of overriding functions
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 7f8ace44..e82b7495 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -721,8 +721,10 @@ Details are given in the following example.
NameReg(config.lookup(1)).register(name);
}
- // Functions can be overridden, both local and
- // message-based function calls take these overrides
+ // Functions can be overridden by another function with the same name and
+ // the same number/types of inputs. If the overriding function has different
+ // types of output parameters, that causes an error.
+ // Both local and message-based function calls take these overrides
// into account.
function kill() {
if (msg.sender == owner) {