File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,14 @@ because although a _variable_ with _name_ `var` occurs before
141
141
the expression `{$var}`, the entire declaration `let $var = {$var}`
142
142
does not occur before the expression `{$var}`.
143
143
144
- Variable names are required to be globally unique. That is,
145
- for any local variable declaration of the form `let $v = e`:
146
- * It is an error if `v` is the left-hand side of a local variable declaration
147
- that appears before `let $v = e` in the message.
148
- * It is also an error if `v` is an externally defined variable.
144
+ Any _name_ MUST NOT appear as the _name_ of the _variable_
145
+ in more than one _declaration_ within the same message.
146
+ If the _variable_ in a _declaration_ also appears
147
+ as the _variable_ in a previous _declaration_,
148
+ a Variable Redefinition error MUST be emitted.
149
+ If the _variable_ in a declaration is also
150
+ an externally defined variable,
151
+ a Formatting error MUST be emitted.
149
152
150
153
The resolution of a _variable_ MAY fail if no value is identified for its _name_.
151
154
If this happens, an Unresolved Variable error MUST be emitted.
You can’t perform that action at this time.
0 commit comments