mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
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:
1 parent
62cbe977e3
commit
64fa7fbecb
4 files changed
+81
-1
No files matched your search
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user