From 31b627a23a510f71495e2bebb629a027c8f0b3f4 Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Mon, 22 Jun 2015 12:56:10 -0700 Subject: [PATCH] moved comment --- src/compiler/checker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 3e0a04b123..c01674d351 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4584,7 +4584,9 @@ namespace ts { for (let targetProp of properties) { let sourceProp = getPropertyOfType(source, targetProp.name); - if (sourceProp !== targetProp) { // sourceProp !== targetProp -- ie: source and target have distinct declarations with the same name + if (sourceProp !== targetProp) { + // sourceProp !== targetProp -- ie: source and target have distinct declarations with the same name + if (!sourceProp) { if (!(targetProp.flags & SymbolFlags.Optional) || requireOptionalProperties) { if (reportErrors) {