File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
test/libsolidity/syntaxTests/inlineAssembly Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Compiler Features:
10
10
11
11
12
12
Bugfixes:
13
+ * Antlr Grammar: Allow builtin names in `` yulPath `` to support `` .address `` in function pointers.
13
14
* Control Flow Graph: Perform proper virtual lookup for modifiers for uninitialized variable and unreachable code analysis.
14
15
* Immutables: Fix wrong error when the constructor of a base contract uses `` return `` and the parent contract contains immutable variables.
15
16
* TypeChecker: Fix ICE when a constant variable declaration forward references a struct.
Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ yulFunctionDefinition:
564
564
* While only identifiers without dots can be declared within inline assembly,
565
565
* paths containing dots can refer to declarations outside the inline assembly block.
566
566
*/
567
- yulPath : YulIdentifier (YulPeriod YulIdentifier)*;
567
+ yulPath : YulIdentifier (YulPeriod ( YulIdentifier | YulEVMBuiltin) )*;
568
568
/* *
569
569
* A call to a function with return values can only occur as right-hand side of an assignment or
570
570
* a variable declaration.
Original file line number Diff line number Diff line change
1
+ contract C {
2
+ function f () public pure {
3
+ function () external g;
4
+ assembly {
5
+ g.address := 0x42
6
+ g.selector := 0x23
7
+ }
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments