File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
test/cmdlineTests/storage_layout_already_defined_in_ancestor Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
- Error: Storage layout can only be specified in the most derived contract .
2
- --> <stdin>:5:1 :
1
+ Error: Cannot inherit from a contract with a custom storage layout .
2
+ --> <stdin>:5:15 :
3
3
|
4
4
5 | contract B is A {}
5
- | ^^^^^^^^^^^^^^^^^^
6
- Note: Storage layout was already specified here.
7
- --> <stdin>:4:12:
8
- |
9
- 4 | contract A layout at 0x1234 {}
10
- | ^^^^^^^^^^^^^^^^
11
-
12
- Error: Storage layout can only be specified in the most derived contract.
13
- --> <stdin>:6:1:
14
- |
15
- 6 | contract C layout at 0x1234 is B {}
16
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
- Note: Storage layout was already specified here.
5
+ | ^
6
+ Note: Custom storage layout defined here:
18
7
--> <stdin>:4:12:
19
8
|
20
9
4 | contract A layout at 0x1234 {}
You can’t perform that action at this time.
0 commit comments