We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd7f52 commit 155d7f4Copy full SHA for 155d7f4
src/compiler/checker.ts
@@ -7658,6 +7658,11 @@ module ts {
7658
7659
if (node.body) {
7660
if (!node.type) {
7661
+ // There are some checks that are only performed in getReturnTypeFromBody, that may produce errors
7662
+ // we need. An example is the noImplicitAny errors resulting from widening the return expression
7663
+ // of a function. Because checking of function expression bodies is deferred, there was never an
7664
+ // appropriate time to do this during the main walk of the file (see the comment at the top of
7665
+ // checkFunctionExpressionBodies). So it must be done now.
7666
getReturnTypeOfSignature(getSignatureFromDeclaration(node));
7667
}
7668
0 commit comments