Skip to content

Commit 0aec6d0

Browse files
fixup! Add tests
1 parent 22c333d commit 0aec6d0

File tree

1 file changed

+4
-15
lines changed
  • test/cmdlineTests/storage_layout_already_defined_in_ancestor

1 file changed

+4
-15
lines changed

test/cmdlineTests/storage_layout_already_defined_in_ancestor/err

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
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:
33
|
44
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:
187
--> <stdin>:4:12:
198
|
209
4 | contract A layout at 0x1234 {}

0 commit comments

Comments
 (0)