diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ad15fabf97dd0..6b9ca94a7c881 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -24118,7 +24118,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const templateType = (getApparentTypeOfContextualType(sourceValueDeclaration.parent.parent as Expression, ContextFlags.NoConstraints) as MappedType).templateType; if (templateType) { Debug.assertNode(sourceValueDeclaration, isExpressionNode); - pushContextualType(sourceValueDeclaration as any as Expression, templateType, /*isCache*/ false); + pushContextualType(sourceValueDeclaration, templateType, /*isCache*/ false); inferFromIntraExpressionSites([inference], intraExpressionInferenceSites); popContextualType(); }