mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Don't error when calling resolveEntityName (#53441)
This commit is contained in:
committed by
GitHub
parent
5712730c2d
commit
d5fd34b037
@@ -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;
|
||||
}
|
||||
|
||||
15
tests/cases/fourslash/classSymbolLookup.ts
Normal file
15
tests/cases/fourslash/classSymbolLookup.ts
Normal 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([]);
|
||||
Reference in New Issue
Block a user