From 52ef460002c5b8b4383dd1df29b566ed992a80f3 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 19 Dec 2014 15:30:03 -0800 Subject: [PATCH] Undid comment change that made things more misleading. --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index d4ce2e6da9a..f8c4caa9630 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5244,8 +5244,8 @@ module ts { // Return the contextual signature for a given expression node. A contextual type provides a // contextual signature if it has a single call signature and if that call signature is non-generic. // If the contextual type is a union type, get the signature from each type possible and if they are - // all identical ignoring their return type, the result is same signature but with a union type of - // the return types of these signatures + // all identical ignoring their return type, the result is same signature but with return type as + // union type of return types from these signatures function getContextualSignature(node: FunctionExpression | MethodDeclaration): Signature { Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node)); var type = isObjectLiteralMethod(node)