Skip to content

Commit 557cd99

Browse files
committed
use more specialized Debug.assertNode
1 parent e90edb3 commit 557cd99

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
@@ -24117,7 +24117,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2411724117
if (intraExpressionInferenceSites?.length) {
2411824118
const templateType = (getApparentTypeOfContextualType(sourceValueDeclaration.parent.parent as Expression, ContextFlags.NoConstraints) as MappedType).templateType;
2411924119
if (templateType) {
24120-
Debug.assert(isExpressionNode(sourceValueDeclaration));
24120+
Debug.assertNode(sourceValueDeclaration, isExpressionNode);
2412124121
pushContextualType(sourceValueDeclaration as any as Expression, templateType, /*isCache*/ false);
2412224122
inferFromIntraExpressionSites([inference], intraExpressionInferenceSites);
2412324123
popContextualType();

0 commit comments

Comments
 (0)