Skip to content

Commit d223a50

Browse files
fixup! Add and update tests
1 parent 84320dc commit d223a50

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
==== Source: a ====
22
contract A {}
33
==== Source: b ====
4-
import {A as super} from "a";
5-
contract C is super {}
4+
import {A as layout} from "a";
5+
contract C is layout {}
66
// ----
7-
// DeclarationError 3726: (b:13-18): The name "super" is reserved.
8-
// Warning 2319: (b:13-18): This declaration shadows a builtin symbol.
7+
// Warning 6335: (a:0-13): "layout" will be promoted to keyword in the next breaking version and will not be allowed as an identifier anymore.

test/libsolidity/syntaxTests/inlineAssembly/clash_with_non_reserved_pure_yul_builtin.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ contract C {
88
assembly { let memoryguard }
99
}
1010
}
11+
// ----
12+
// Warning 5470: (207-232): "memoryguard" will be promoted to reserved Yul identifier in the next breaking version and will not be allowed anymore as an identifier.
13+
// Warning 5470: (265-276): "memoryguard" will be promoted to reserved Yul identifier in the next breaking version and will not be allowed anymore as an identifier.
14+
// Warning 5470: (318-329): "memoryguard" will be promoted to reserved Yul identifier in the next breaking version and will not be allowed anymore as an identifier.
15+
// Warning 5470: (358-369): "memoryguard" will be promoted to reserved Yul identifier in the next breaking version and will not be allowed anymore as an identifier.

test/libsolidity/syntaxTests/variableDeclaration/variable_named_leave.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ contract C {
22
uint leave = 1;
33
}
44
// ----
5+
// Warning 6335: (17-31): "leave" will be promoted to keyword in the next breaking version and will not be allowed as an identifier anymore.

0 commit comments

Comments
 (0)