use Value meaning as a filter when resolving names to prevent skipping other value in favor of block-scoped variables

This commit is contained in:
Vladimir Matveev
2015-03-13 11:52:14 -07:00
parent 62cbe977e3
commit 64fa7fbecb
4 changed files with 81 additions and 1 deletions
+1 -1
View File
@@ -11072,7 +11072,7 @@ module ts {
var symbol = declarationSymbol ||
getNodeLinks(n).resolvedSymbol ||
resolveName(n, n.text, SymbolFlags.BlockScopedVariable | SymbolFlags.Alias, /*nodeNotFoundMessage*/ undefined, /*nameArg*/ undefined);
resolveName(n, n.text, SymbolFlags.Value | SymbolFlags.Alias, /*nodeNotFoundMessage*/ undefined, /*nameArg*/ undefined);
var isLetOrConst =
symbol &&