File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7340,7 +7340,7 @@ module ts {
73407340
73417341 function checkFunctionExpressionOrObjectLiteralMethodBody(node: FunctionExpression | MethodDeclaration) {
73427342 Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node));
7343- if (node.type) {
7343+ if (node.type && !node.asteriskToken ) {
73447344 checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type));
73457345 }
73467346
@@ -8906,7 +8906,7 @@ module ts {
89068906 }
89078907
89088908 checkSourceElement(node.body);
8909- if (node.type && !isAccessor(node.kind)) {
8909+ if (node.type && !isAccessor(node.kind) && !node.asteriskToken ) {
89108910 checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type));
89118911 }
89128912
You can’t perform that action at this time.
0 commit comments