Computed enum assignability is semi-structural
This commit is contained in:
parent
bfed54487e
commit
267042fdc3
1 changed files with 1 additions and 1 deletions
|
@ -6202,7 +6202,7 @@ namespace ts {
|
|||
}
|
||||
if (source.symbol.name !== target.symbol.name ||
|
||||
!(source.symbol.flags & SymbolFlags.RegularEnum) || !(target.symbol.flags & SymbolFlags.RegularEnum) ||
|
||||
!(source.flags & TypeFlags.Union) || !(target.flags & TypeFlags.Union)) {
|
||||
(source.flags & TypeFlags.Union) !== (target.flags & TypeFlags.Union)) {
|
||||
return (enumRelation[id] = false);
|
||||
}
|
||||
const targetEnumType = getTypeOfSymbol(target.symbol);
|
||||
|
|
Loading…
Reference in a new issue