mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
correct documentation around contract type conversion
This commit is contained in:
parent
d9e4a10d5a
commit
3a452181a0
@ -305,8 +305,7 @@ Contract Types
|
|||||||
|
|
||||||
Every :ref:`contract<contracts>` defines its own type.
|
Every :ref:`contract<contracts>` defines its own type.
|
||||||
You can implicitly convert contracts to contracts they inherit from.
|
You can implicitly convert contracts to contracts they inherit from.
|
||||||
Contracts can be explicitly converted to and from all other contract types
|
Contracts can be explicitly converted to and from the ``address`` type.
|
||||||
and the ``address`` type.
|
|
||||||
|
|
||||||
Explicit conversion to and from the ``address payable`` type
|
Explicit conversion to and from the ``address payable`` type
|
||||||
is only possible if the contract type has a payable fallback function.
|
is only possible if the contract type has a payable fallback function.
|
||||||
|
Loading…
Reference in New Issue
Block a user