We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf99e6 commit cf36fafCopy full SHA for cf36faf
src/compiler/checker.ts
@@ -6213,7 +6213,7 @@ namespace ts {
6213
}
6214
if (source.symbol.name !== target.symbol.name ||
6215
!(source.symbol.flags & SymbolFlags.RegularEnum) || !(target.symbol.flags & SymbolFlags.RegularEnum) ||
6216
- !(source.flags & TypeFlags.Union) || !(target.flags & TypeFlags.Union)) {
+ (source.flags & TypeFlags.Union) !== (target.flags & TypeFlags.Union)) {
6217
return (enumRelation[id] = false);
6218
6219
const targetEnumType = getTypeOfSymbol(target.symbol);
0 commit comments