Skip to content

Commit

Permalink
make isExpressionNode an asserts function
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Apr 26, 2023
1 parent 557cd99 commit 44a9df3
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 @@ -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();
}
Expand Down

0 comments on commit 44a9df3

Please sign in to comment.