diff --git a/src/services/services.ts b/src/services/services.ts index 3eb31353f7d..d51a9233d45 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -848,7 +848,7 @@ module ts { // Overwrite the last declaration if it was an overload // and this one is an implementation. if (functionDeclaration.body && !(lastDeclaration).body) { - lastOrUndefined(declarations) = functionDeclaration; + declarations[declarations.length - 1] = functionDeclaration; } } else {