We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8a352 commit d1dbd2eCopy full SHA for d1dbd2e
test/libsolidity/syntaxTests/storageLayoutSpecifier/immutables.sol
@@ -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