We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d92ade commit b9ae6ceCopy full SHA for b9ae6ce
src/compiler/checker.ts
@@ -1355,6 +1355,7 @@ module ts {
1355
// Use the type of the initializer expression if one is present
1356
if (declaration.initializer) {
1357
var type = checkAndMarkExpression(declaration.initializer);
1358
+ // Widening of property assignments is handled by checkObjectLiteral, exclude them here
1359
if (declaration.kind !== SyntaxKind.PropertyAssignment) {
1360
var unwidenedType = type;
1361
type = getWidenedType(type);
0 commit comments