From bac22846c91365e1e6a2eeb4e971b2a7e336b192 Mon Sep 17 00:00:00 2001 From: "shyyko.serhiy@gmail.com" Date: Sun, 2 Aug 2015 23:58:46 +0300 Subject: [PATCH] fix issue https://github.com/Microsoft/TypeScript/issues/3991 --- src/compiler/checker.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2ff2c8590d0..04d8ce937d0 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10449,7 +10449,10 @@ namespace ts { case SyntaxKind.FunctionExpression: case SyntaxKind.FunctionDeclaration: case SyntaxKind.ArrowFunction: - case SyntaxKind.ObjectLiteralExpression: return false; + case SyntaxKind.ClassExpression: + case SyntaxKind.ClassDeclaration: + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: return false; default: return forEachChild(n, containsSuperCall); } }