Skip to content

Commit b9ae6ce

Browse files
committed
Adding a comment
1 parent 3d92ade commit b9ae6ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ module ts {
13551355
// Use the type of the initializer expression if one is present
13561356
if (declaration.initializer) {
13571357
var type = checkAndMarkExpression(declaration.initializer);
1358+
// Widening of property assignments is handled by checkObjectLiteral, exclude them here
13581359
if (declaration.kind !== SyntaxKind.PropertyAssignment) {
13591360
var unwidenedType = type;
13601361
type = getWidenedType(type);

0 commit comments

Comments
 (0)