Skip to content

Commit

Permalink
Always keep the first resolvedReturnType
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Apr 27, 2024
1 parent a555303 commit 29c2575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Expand Up @@ -15392,7 +15392,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
}
type = anyType;
}
signature.resolvedReturnType = type;
signature.resolvedReturnType ??= type;
}
return signature.resolvedReturnType;
}
Expand Down

0 comments on commit 29c2575

Please sign in to comment.