Ensure no duplicates in named union list
This commit is contained in:
parent
26bbdf1173
commit
361e19bbe8
|
@ -13460,7 +13460,7 @@ namespace ts {
|
|||
if (t.flags & TypeFlags.Union) {
|
||||
const origin = (<UnionType>t).origin;
|
||||
if (t.aliasSymbol || origin && !(origin.flags & TypeFlags.Union)) {
|
||||
namedUnions.push(t);
|
||||
pushIfUnique(namedUnions, t);
|
||||
}
|
||||
else if (origin && origin.flags & TypeFlags.Union) {
|
||||
addNamedUnions(namedUnions, (<UnionType>origin).types);
|
||||
|
|
Loading…
Reference in a new issue