aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-05 13:50:45 +0800
committerchriseth <chris@ethereum.org>2018-11-06 16:11:02 +0800
commit5df83346f36f7da62d914b8f4fc7036176292366 (patch)
tree7bd69c3c1214b86c2be5fc9e733e7cfeaa3f4dbb
parente4da724fb85b598dfffbfd8f874c6ec07a724316 (diff)
downloaddexon-solidity-5df83346f36f7da62d914b8f4fc7036176292366.tar.gz
dexon-solidity-5df83346f36f7da62d914b8f4fc7036176292366.tar.zst
dexon-solidity-5df83346f36f7da62d914b8f4fc7036176292366.zip
Integers cannot be implicitly converted to address
-rw-r--r--docs/types.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst
index bd5d1734..34b94b88 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -1225,7 +1225,6 @@ is possible if it
makes sense semantically and no information is lost: ``uint8`` is convertible to
``uint16`` and ``int128`` to ``int256``, but ``int8`` is not convertible to ``uint256``
(because ``uint256`` cannot hold e.g. ``-1``).
-Any integer type that can be converted to ``uint160`` can also be converted to ``address``.
For more details, please consult the sections about the types themselves.
@@ -1335,4 +1334,4 @@ Addresses
As described in :ref:`address_literals`, hex literals of the correct size that pass the checksum
test are of ``address`` type. No other literals can be implicitly converted to the ``address`` type.
-Explicit conversions from ``bytes20`` or any integer type to ``address`` results in ``address payable``. \ No newline at end of file
+Explicit conversions from ``bytes20`` or any integer type to ``address`` result in ``address payable``.