Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusaaguiar committed Dec 3, 2024
1 parent 94efd53 commit 7f4eb69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
contract A layout at 3/2 {}
// ----
// TypeError 76: (21-24): Contract storage base location cannot be specified by a fractional number.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
uint constant X = 42;
contract C layout at 0xffff * (50 - X) { }
// ----
// TypeError 42: (43-60): Only number literals are accepted in the expression specifying the contract base storage location.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ contract A layout at 0x1234 {}
contract B layout at 1024 {}
contract C layout at "C" {}
// ----
// TypeError 76: (81-84): Contract storage base location must be in range of type uint256. Current type is literal_string "C"

0 comments on commit 7f4eb69

Please sign in to comment.