mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 12:55:49 -05:00
Computed enum assignability is semi-structural
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user