Skip to content

Commit f5cd251

Browse files
committed
Make statement about variable visibility more precise
1 parent 8f598e2 commit f5cd251

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)