Skip to content

Commit

Permalink
Fix smoke test probably
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Nov 14, 2022
1 parent 1988e50 commit fc93cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32828,6 +32828,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
// by suppressing the initial return type at the end of the flow
const fakeReference = factory.cloneNode(node.expression);
setParent(fakeReference, node.parent);
setTextRange(fakeReference, node.expression);
fakeReference.flowNode = node.expression.flowNode;
const flowType = getFlowTypeOfReference(fakeReference, exprType, undefinedType, flowContainer);
if (containsUndefinedType(flowType)) {
Expand Down

0 comments on commit fc93cf3

Please sign in to comment.