mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 20:01:02 -05:00
Undid comment change that made things more misleading.
This commit is contained in:
committed by
Daniel Rosenwasser
parent
4aa37691a1
commit
52ef460002
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user