-
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
8b303fb
commit 7473a01
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
test/libsolidity/syntaxTests/contractBaseLocation/layout_specification_bytes.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,4 @@ | ||
bytes32 constant b = "bytes"; | ||
contract A layout at b[1] {} | ||
// ---- | ||
// TypeError 1763: (51-55): Contract storage base location must be in range of type uint256. Current type is bytes1 |
3 changes: 3 additions & 0 deletions
3
test/libsolidity/syntaxTests/contractBaseLocation/layout_specification_negative_number.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,3 @@ | ||
contract A layout at -1 {} | ||
// ---- | ||
// TypeError 1763: (21-23): Contract storage base location must be in range of type uint256. Current type is int_const -1 Cannot implicitly convert signed literal to unsigned type. |