Skip to content

Commit aa93ab3

Browse files
committed
Manual port of microsoft#51704
1 parent e7a02f4 commit aa93ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32704,13 +32704,13 @@ namespace ts {
3270432704

3270532705
function checkSatisfiesExpression(node: SatisfiesExpression) {
3270632706
checkSourceElement(node.type);
32707+
const exprType = checkExpression(node.expression);
3270732708

3270832709
const targetType = getTypeFromTypeNode(node.type);
3270932710
if (isErrorType(targetType)) {
3271032711
return targetType;
3271132712
}
3271232713

32713-
const exprType = checkExpression(node.expression);
3271432714
checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, node.type, node.expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1);
3271532715

3271632716
return exprType;

0 commit comments

Comments
 (0)