Skip to content

Commit 44a9df3

Browse files
committed
make isExpressionNode an asserts function
1 parent 557cd99 commit 44a9df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24118,7 +24118,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2411824118
const templateType = (getApparentTypeOfContextualType(sourceValueDeclaration.parent.parent as Expression, ContextFlags.NoConstraints) as MappedType).templateType;
2411924119
if (templateType) {
2412024120
Debug.assertNode(sourceValueDeclaration, isExpressionNode);
24121-
pushContextualType(sourceValueDeclaration as any as Expression, templateType, /*isCache*/ false);
24121+
pushContextualType(sourceValueDeclaration, templateType, /*isCache*/ false);
2412224122
inferFromIntraExpressionSites([inference], intraExpressionInferenceSites);
2412324123
popContextualType();
2412424124
}

0 commit comments

Comments
 (0)