diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 7e393c5a35a..fef23ebdcf1 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3331,7 +3331,7 @@ namespace ts { } export function isParameter(node: Node): node is ParameterDeclaration { - return node.kind === SyntaxKind.Parameter; + return node.kind === SyntaxKind.Parameter && ((node as ParameterDeclaration).name as Identifier).text !== "this"; } export function isDecorator(node: Node): node is Decorator {