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