Skip to content

Commit df4622b

Browse files
authored
Merge pull request #1045 from FabianWolff/var-visibility
Make statement about variable visibility more precise
2 parents 8f598e2 + f5cd251 commit df4622b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/statements.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ annotation and then optionally by an initializer expression. When no
6262
type annotation is given, the compiler will infer the type, or signal
6363
an error if insufficient type information is available for definite
6464
inference. Any variables introduced by a variable declaration are visible
65-
from the point of declaration until the end of the enclosing block scope.
65+
from the point of declaration until the end of the enclosing block scope,
66+
except when they are shadowed by another variable declaration.
6667

6768
## Expression statements
6869

0 commit comments

Comments
 (0)