Don't error when calling resolveEntityName (#53441)

This commit is contained in:
Gabriela Araujo Britto
2023-03-23 14:49:53 -03:00
committed by GitHub
parent 5712730c2d
commit d5fd34b037
2 changed files with 16 additions and 1 deletions

View File

@@ -45309,7 +45309,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
}
meaning |= SymbolFlags.Alias;
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning) : undefined;
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning, /*ignoreErrors*/ true) : undefined;
if (entityNameSymbol) {
return entityNameSymbol;
}

View File

@@ -0,0 +1,15 @@
/// <reference path="fourslash.ts" />
// Issue #53247
//// class Foo<T extends Object, C extends {}> {
//// private constructor(value : T, context: C){ }
//// static readonly makeFoo = <C extends {}>(context : C) =>
//// <T extends Object>(value : T) =>
//// new Foo<T, C>(value, context);
//// }
//// const x = Foo.makeFoo<{}>;
//// x({});
verify.encodedSemanticClassificationsLength("2020", 75);
verify.getSemanticDiagnostics([]);