Disallow explicit conversions from negative literals to `address`

This commit is contained in:
Harikrishnan Mulackal
2020-10-07 16:06:02 +02:00
committed by hrkrshnn
parent b401093679
commit a309669f75
9 changed files with 61 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
********************************
Solidity v0.8.0 Breaking Changes
********************************
This section highlights the main breaking changes introduced in Solidity
version 0.8.0, along with the reasoning behind the changes and how to update
affected code.
For the full list check
`the release changelog <https://github.com/ethereum/solidity/releases/tag/v0.8.0>`_.
Semantic and Syntactic Changes
==============================
This section lists changes where you have to modify your code
and it does something else afterwards.
* Explicit conversions from negative literals and literals larger than ``type(uint160).max`` to ``address`` are now disallowed.