Skip to content

Commit d219408

Browse files
committed
TODO
1 parent 92f4fd3 commit d219408

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8119,6 +8119,8 @@ 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.
81228124
const type = getDeclaredTypeOfSymbol(sym);
81238125
const name = sym.flags & SymbolFlags.TypeParameter && !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration) ? typeParameterToName(type, context) : factory.cloneNode(node);
81248126
name.symbol = sym; // for quickinfo, which uses identifier symbol information

0 commit comments

Comments
 (0)