This commit is contained in:
Mitali Sinha 2023-10-02 13:12:00 -06:00 committed by GitHub
commit 5e914c7833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,8 +232,37 @@ Variables
* Declaring empty structs is now disallowed for clarity.
**Before v0.5.0 (Valid):**
```solidity
struct EmptyStruct {} // Allowed in older versions
```
**v0.5.0 and Later (Disallowed):**
```solidity
struct EmptyStruct {} // Disallowed
```
* The ``var`` keyword is now disallowed to favor explicitness.
**Before v0.5.0 (Valid):**
```solidity
function example() {
var x = 42; // Allowed in older versions
}
```
**v0.5.0 and Later (Disallowed):**
```solidity
function example() {
var x = 42; // Disallowed
}
```
* Assignments between tuples with different number of components is now
disallowed.