-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d389730
commit 82b5fec
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...idity/syntaxTests/contractBaseLocation/layout_already_specified_in_ancestor_contract_.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,8 @@ | ||
contract A layout at 0x1234 {} | ||
|
||
contract B is A {} | ||
|
||
contract C is B layout at 0xABCD {} | ||
// ---- | ||
// TypeError 8894: (32-50): Storage base location can only be specified in the most derived contract. | ||
// TypeError 8894: (52-87): Storage base location can only be specified in the most derived contract. |
8 changes: 8 additions & 0 deletions
8
...y/syntaxTests/contractBaseLocation/layout_not_specified_in_most_derived_contract_copy.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,8 @@ | ||
contract A layout at 0x1234 {} | ||
|
||
contract B is A {} | ||
|
||
contract C is B {} | ||
// ---- | ||
// TypeError 8894: (32-50): Storage base location can only be specified in the most derived contract. | ||
// TypeError 8894: (52-70): Storage base location can only be specified in the most derived contract. |
5 changes: 5 additions & 0 deletions
5
.../libsolidity/syntaxTests/contractBaseLocation/layout_specified_by_expression_not_pure.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,5 @@ | ||
function f(uint x) returns (uint) { return x + 1; } | ||
contract A layout at f(2) {} | ||
// ---- | ||
// TypeError 1139: (73-77): The contract base location must be an expression that can be evaluated at compilation time. | ||
// TypeError 6396: (73-77): Only number literals are accepted in the expression specifying the contract base storage location. |