8000 update comment text · ezhangle/TypeScript@07dbd30 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07dbd30

Browse files
committed
update comment text
1 parent a9df539 commit 07dbd30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8241,9 +8241,9 @@ module ts {
82418241
var localContainer =
82428242
localVarDeclList.parent.kind === SyntaxKind.VariableStatement &&
82438243
localVarDeclList.parent.parent;
8244-
8245-
// if block scoped variable is defined in the function\module\source file scope
8246-
// then since function scoped variable is hoised their names will collide
8244+
8245+
// names of block-scoped and function scoped variables can collide only
8246+
// if block scoped variable is defined in the function\module\source file scope (because of variable hoisting)
82478247
var namesShareScope =
82488248
localContainer &&
82498249
(localContainer.kind === SyntaxKind.Block && isAnyFunction(localContainer.parent) ||

0 commit comments

Comments
 (0)
0