Skip to content

Commit 471ac3c

Browse files
committed
Fix issue with epc error-reporting
1 parent 27d9dbe commit 471ac3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15583,7 +15583,7 @@ namespace ts {
1558315583
}
1558415584
}
1558515585
if (unionParent && !result && targetIsOptional) {
15586-
result = isRelatedTo(source, undefinedType);
15586+
result = isRelatedTo(source, addOptionality(getTypeOfSymbol(targetProp), targetIsOptional));
1558715587
}
1558815588
if (unionParent && !result && reportErrors) {
1558915589
// The easiest way to get the right errors here is to un-defer (which may be costly)

0 commit comments

Comments
 (0)