diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 7f3f0bb8ba7..3c7f3539e76 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -1027,8 +1027,8 @@ namespace ts { // Return the result if we have an immediate super() call on the last statement, // but only if the constructor itself doesn't use 'this' elsewhere. if (superCallExpression - && statementOffset === ctorStatements.length - 1 - && !(ctor.transformFlags & (TransformFlags.ContainsLexicalThis | TransformFlags.ContainsCapturedLexicalThis))) { + && statementOffset === ctorStatements.length - 1 + && !(ctor.transformFlags & (TransformFlags.ContainsLexicalThis | TransformFlags.ContainsCapturedLexicalThis))) { const returnStatement = createReturn(superCallExpression); if (superCallExpression.kind !== SyntaxKind.BinaryExpression