Skip to content

Commit d1dbd2e

Browse files
fixup! Update and add tests
1 parent 6b8a352 commit d1dbd2e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
contract A {
2+
address immutable a = 0x0000000000000000000000000000000000000001;
3+
uint immutable x = 1;
4+
}
5+
6+
contract B is A layout at A.a { }
7+
contract C is A layout at A.x { }
8+
// ----
9+
// TypeError 1139: (138-141): The base slot of the storage layout must be a compile-time constant expression.
10+
// TypeError 1139: (172-175): The base slot of the storage layout must be a compile-time constant expression.

0 commit comments

Comments
 (0)