Skip to content

Commit fc93cf3

Browse files
committed
Fix smoke test probably
1 parent 1988e50 commit fc93cf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32828,6 +32828,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3282832828
// by suppressing the initial return type at the end of the flow
3282932829
const fakeReference = factory.cloneNode(node.expression);
3283032830
setParent(fakeReference, node.parent);
32831+
setTextRange(fakeReference, node.expression);
3283132832
fakeReference.flowNode = node.expression.flowNode;
3283232833
const flowType = getFlowTypeOfReference(fakeReference, exprType, undefinedType, flowContainer);
3283332834
if (containsUndefinedType(flowType)) {

0 commit comments

Comments
 (0)