Skip to content

Commit c215aa8

Browse files
committed
Revert "TODO"
This reverts commit d219408.
1 parent 562240c commit c215aa8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8119,8 +8119,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
81198119
includePrivateSymbol?.(sym);
81208120
}
81218121
if (isIdentifier(node)) {
8122-
// TODO(jakebailey): this can't be right... if we are looking at `(x: { x: number }) => void`,
8123-
// we'll be here for the innermost "x", and yet we'll find the parameter and use its symbol instead.
81248122
const type = getDeclaredTypeOfSymbol(sym);
81258123
const name = sym.flags & SymbolFlags.TypeParameter && !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration) ? typeParameterToName(type, context) : factory.cloneNode(node);
81268124
name.symbol = sym; // for quickinfo, which uses identifier symbol information

0 commit comments

Comments
 (0)