From 07dbd30ba167f571e8c6f3d81ddb4b4be975be04 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Thu, 12 Feb 2015 16:40:06 -0800 Subject: [PATCH] update comment text --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 91537818175..6d1be6b4fa5 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8241,9 +8241,9 @@ module ts { var localContainer = localVarDeclList.parent.kind === SyntaxKind.VariableStatement && localVarDeclList.parent.parent; - - // if block scoped variable is defined in the function\module\source file scope - // then since function scoped variable is hoised their names will collide + + // names of block-scoped and function scoped variables can collide only + // if block scoped variable is defined in the function\module\source file scope (because of variable hoisting) var namesShareScope = localContainer && (localContainer.kind === SyntaxKind.Block && isAnyFunction(localContainer.parent) ||