diff options
author | chriseth <chris@ethereum.org> | 2016-11-25 02:47:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 02:47:27 +0800 |
commit | 19c9e85a20f296a66be07cac1573f28000ac5f44 (patch) | |
tree | 85a55972c0601549d79fac50874149aea8812acb /docs | |
parent | e4619048547a51a20899ac9c89cbfac84091b04e (diff) | |
parent | c33b098e55ee7c330823106f72bb1668522c912f (diff) | |
download | dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar.gz dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar.bz2 dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar.lz dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar.xz dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.tar.zst dexon-solidity-19c9e85a20f296a66be07cac1573f28000ac5f44.zip |
Merge pull request #1432 from ethereum/override-types
docs: add a description about the types of parameters of overriding functions
Diffstat (limited to 'docs')
-rw-r--r-- | docs/contracts.rst | 6 |
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) { |