Addressing CR feedback.

This commit is contained in:
Anders Hejlsberg
2014-08-04 11:40:56 -07:00
parent 116401b2c8
commit 2b26e37976
2 changed files with 2 additions and 2 deletions

View File

@@ -3416,7 +3416,7 @@ module ts {
}
// Return contextual type of parameter or undefined if no contextual type is available
function getContextuallyTypedParameterType(parameter: VariableDeclaration): Type {
function getContextuallyTypedParameterType(parameter: ParameterDeclaration): Type {
var func = <FunctionDeclaration>parameter.parent;
if (func.kind === SyntaxKind.FunctionExpression || func.kind === SyntaxKind.ArrowFunction) {
if (isContextSensitiveExpression(func)) {

View File

@@ -320,7 +320,7 @@ module ts {
}
export interface Expression extends Node {
contextualType?: Type;
contextualType?: Type; // Used to temporarily assign a contextual type during overload resolution
}
export interface UnaryExpression extends Expression {