diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 8322bb7c5d3..d0c9ff87140 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11384,7 +11384,8 @@ module ts { if (node.kind === SyntaxKind.ArrowFunction && (node).arrow) { var arrowFunction = node; var sourceFile = getSourceFileOfNode(node); - if (getLineAndCharacterOfPosition(sourceFile, getTokenPosOfNode(arrowFunction.arrow, sourceFile)).line !== getLineAndCharacterOfPosition(sourceFile, arrowFunction.parameters.end).line) { + if (getLineAndCharacterOfPosition(sourceFile, getTokenPosOfNode(arrowFunction.arrow, sourceFile)).line !== + getLineAndCharacterOfPosition(sourceFile, arrowFunction.parameters.end).line) { return grammarErrorOnNode(arrowFunction.arrow, Diagnostics.Line_terminator_not_permitted_before_arrow); } }