Skip to content

Commit

Permalink
fix code to accomodate microsoft#51682
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshj committed Jan 3, 2023
1 parent 69b7959 commit 389833b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11363,7 +11363,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node as ClassLikeDeclaration | InterfaceDeclaration)).thisType;

const selfType =
node.kind === SyntaxKind.TypeAliasDeclaration ? getSymbolLinks(node.symbol).selfType : undefined;
node.kind === SyntaxKind.TypeAliasDeclaration ? getSymbolLinks(getSymbolOfDeclaration(node as TypeAliasDeclaration)).selfType : undefined;

const implicitTypeParameters = [
...(thisType ? [thisType] : []),
Expand Down

0 comments on commit 389833b

Please sign in to comment.