From b9ae6cec17f03761cd9cff477cdb66e67185533c Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 10 Sep 2014 13:14:30 -0700 Subject: [PATCH] Adding a comment --- src/compiler/checker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f794f33e046..5dfe4a8e7a4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1355,6 +1355,7 @@ module ts { // Use the type of the initializer expression if one is present if (declaration.initializer) { var type = checkAndMarkExpression(declaration.initializer); + // Widening of property assignments is handled by checkObjectLiteral, exclude them here if (declaration.kind !== SyntaxKind.PropertyAssignment) { var unwidenedType = type; type = getWidenedType(type);