From ed277b8ee978209b59443cccc6755145b23dd976 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 1 Feb 2019 10:50:04 -0800 Subject: [PATCH] Handle GetAccessor and SetAccessor in isThisless (#27869) --- src/compiler/checker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cb011bdae5e..078216f6203 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6364,7 +6364,9 @@ namespace ts { case SyntaxKind.MethodDeclaration: case SyntaxKind.MethodSignature: case SyntaxKind.Constructor: - return isThislessFunctionLikeDeclaration(declaration); + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + return isThislessFunctionLikeDeclaration(declaration); } } }