-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont allow initialization of transient storage state variables
- Loading branch information
1 parent
55a5fd9
commit da68f49
Showing
5 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/libsolidity/smtCheckerTests/unsupported/transient_storage_state_variable.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...libsolidity/syntaxTests/dataLocations/transient_value_type_state_variables_assignment.sol
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...olidity/syntaxTests/dataLocations/transient_value_type_state_variables_initialization.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
contract D { } | ||
|
||
contract C { | ||
int transient x = -99; | ||
address transient a = address(0xABC); | ||
bool transient b = x > 0 ? false : true; | ||
} | ||
// ---- | ||
// DeclarationError 9825: (30-51): Initialization of transient storage state variables is not supported. | ||
// DeclarationError 9825: (54-90): Initialization of transient storage state variables is not supported. | ||
// DeclarationError 9825: (93-132): Initialization of transient storage state variables is not supported. |