Skip to content

Commit

Permalink
use more specialized Debug.assertNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Apr 26, 2023
1 parent e90edb3 commit 557cd99
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 @@ -24117,7 +24117,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
if (intraExpressionInferenceSites?.length) {
const templateType = (getApparentTypeOfContextualType(sourceValueDeclaration.parent.parent as Expression, ContextFlags.NoConstraints) as MappedType).templateType;
if (templateType) {
Debug.assert(isExpressionNode(sourceValueDeclaration));
Debug.assertNode(sourceValueDeclaration, isExpressionNode);
pushContextualType(sourceValueDeclaration as any as Expression, templateType, /*isCache*/ false);
inferFromIntraExpressionSites([inference], intraExpressionInferenceSites);
popContextualType();
Expand Down

0 comments on commit 557cd99

Please sign in to comment.