Merge pull request #29756 from Microsoft/fixStrictPropertyInitialization

Revert change to strict property initialization checks
This commit is contained in:
Anders Hejlsberg
2019-02-05 15:10:30 -08:00
committed by GitHub
6 changed files with 87 additions and 1 deletions

View File

@@ -27249,7 +27249,7 @@ namespace ts {
reference.expression.parent = reference;
reference.parent = constructor;
reference.flowNode = constructor.returnFlowNode;
const flowType = getFlowTypeOfReference(reference, getOptionalType(propType));
const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
return !(getFalsyFlags(flowType) & TypeFlags.Undefined);
}