mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Computed enum assignability is semi-structural
This commit is contained in:
parent
5cf99e605a
commit
cf36fafe9a
@ -6213,7 +6213,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…
x
Reference in New Issue
Block a user