Skip to content

Commit 16d8d9e

Browse files
committed
Fix for #2971, adds missing logic in checkFunctionExpressionBodies
1 parent 3853489 commit 16d8d9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10930,6 +10930,7 @@ module ts {
1093010930
break;
1093110931
case SyntaxKind.MethodDeclaration:
1093210932
case SyntaxKind.MethodSignature:
10933+
forEach(node.decorators, checkFunctionExpressionBodies);
1093310934
forEach((<MethodDeclaration>node).parameters, checkFunctionExpressionBodies);
1093410935
if (isObjectLiteralMethod(node)) {
1093510936
checkFunctionExpressionOrObjectLiteralMethodBody(<MethodDeclaration>node);
@@ -10944,6 +10945,7 @@ module ts {
1094410945
case SyntaxKind.WithStatement:
1094510946
checkFunctionExpressionBodies((<WithStatement>node).expression);
1094610947
break;
10948+
case SyntaxKind.Decorator:
1094710949
case SyntaxKind.Parameter:
1094810950
case SyntaxKind.PropertyDeclaration:
1094910951
case SyntaxKind.PropertySignature:

0 commit comments

Comments
 (0)