Adding a comment

This commit is contained in:
Anders Hejlsberg
2014-09-10 13:14:30 -07:00
parent 3d92adec7b
commit b9ae6cec17

View File

@@ -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);