Merge pull request #29756 from Microsoft/fixStrictPropertyInitialization

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

No files matched your search

+1 -1
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);
}