mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow explicit conversion from address to address payable
This commit is contained in:
@@ -128,3 +128,5 @@ As described in :ref:`address_literals`, hex literals of the correct size that p
|
||||
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`` result in ``address payable``.
|
||||
|
||||
An ``address a`` can be converted to ``address payable`` via ``payable(a)``.
|
||||
|
||||
Reference in New Issue
Block a user