Skip to content

Commit ed277b8

Browse files
Andy Hansonsandersn
authored andcommitted
Handle GetAccessor and SetAccessor in isThisless (#27869)
1 parent 44fae8c commit ed277b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6364,7 +6364,9 @@ namespace ts {
63646364
case SyntaxKind.MethodDeclaration:
63656365
case SyntaxKind.MethodSignature:
63666366
case SyntaxKind.Constructor:
6367-
return isThislessFunctionLikeDeclaration(<FunctionLikeDeclaration>declaration);
6367+
case SyntaxKind.GetAccessor:
6368+
case SyntaxKind.SetAccessor:
6369+
return isThislessFunctionLikeDeclaration(<FunctionLikeDeclaration | AccessorDeclaration>declaration);
63686370
}
63696371
}
63706372
}

0 commit comments

Comments
 (0)