Skip to content

Commit 60b8bbc

Browse files
committed
Update style
1 parent c6734af commit 60b8bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14349,7 +14349,10 @@ namespace ts {
1434914349
// typeof a.b.c is normally resolved using `checkExpression` which in turn defers to `checkQualifiedName`
1435014350
// That, in turn, ultimately uses `getPropertyOfType` on the type of the symbol, which differs slightly from
1435114351
// the `exports` lookup process that only looks up namespace members which is used for most type references
14352-
const next = node.isTypeOf ? getPropertyOfType(getTypeOfSymbol(resolveSymbol(currentNamespace)), current.escapedText) : getSymbol(getExportsOfSymbol(getMergedSymbol(resolveSymbol(currentNamespace))), current.escapedText, meaning);
14352+
const mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));
14353+
const next = node.isTypeOf
14354+
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)
14355+
: getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);
1435314356
if (!next) {
1435414357
error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current));
1435514358
return links.resolvedType = errorType;

0 commit comments

Comments
 (0)