File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1060,7 +1060,8 @@ Result expressions are not assignable.
10601060 : '[' [ <Elements: ExpressionList> ] ']'
10611061
10621062A list expression evaluates all the elements in the expression list from
1063- left to right and constructs a list value with them as elements.
1063+ left to right and constructs a list value with them as elements. Each
1064+ expression is converted to ` optional any ` when constructing the list.
10641065
10651066The elements list is optional, so the empty list can be specified as
10661067* [ ] * .
@@ -1078,7 +1079,8 @@ List expressions are not assignable.
10781079
10791080An array expression evaluates all of the key and value expressions
10801081from left to right, and constructs an ** Array** value as appropriate.
1081- Each key expression must evaluate to a ** String** .
1082+ Each key expression must evaluate to a ** String** . Each value expression
1083+ is converted to ` optional any ` when constructing the array.
10821084
10831085The contents are optional, so the empty array can be written as ` {} ` .
10841086
You can’t perform that action at this time.
0 commit comments