mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Address PR comments
This commit is contained in:
parent
11929e33ed
commit
271ca80c75
@ -7777,8 +7777,10 @@ namespace ts {
|
||||
return related;
|
||||
}
|
||||
}
|
||||
const discriminantType = findMatchingDiscriminantType(source, target);
|
||||
isRelatedTo(source, discriminantType || targetTypes[targetTypes.length - 1], reportErrors);
|
||||
if (reportErrors) {
|
||||
const discriminantType = findMatchingDiscriminantType(source, target);
|
||||
isRelatedTo(source, discriminantType || targetTypes[targetTypes.length - 1], /*reportErrors*/ true);
|
||||
}
|
||||
return Ternary.False;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user