Disallow Yul function definitions inside for loop init blocks.

This commit is contained in:
chriseth
2019-04-25 10:32:00 +02:00
parent 5d93c492fe
commit f26cdea6ca
5 changed files with 55 additions and 1 deletions
+1
View File
@@ -167,6 +167,7 @@ The ``continue`` and ``break`` statements can only be used inside loop bodies
and have to be in the same function as the loop (or both have to be at the
top level).
The condition part of the for-loop has to evaluate to exactly one value.
Functions cannot be defined inside for loop init blocks.
Literals cannot be larger than the their type. The largest type defined is 256-bit wide.