We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfed544 commit 267042fCopy full SHA for 267042f
1 file changed
src/compiler/checker.ts
@@ -6202,7 +6202,7 @@ namespace ts {
6202
}
6203
if (source.symbol.name !== target.symbol.name ||
6204
!(source.symbol.flags & SymbolFlags.RegularEnum) || !(target.symbol.flags & SymbolFlags.RegularEnum) ||
6205
- !(source.flags & TypeFlags.Union) || !(target.flags & TypeFlags.Union)) {
+ (source.flags & TypeFlags.Union) !== (target.flags & TypeFlags.Union)) {
6206
return (enumRelation[id] = false);
6207
6208
const targetEnumType = getTypeOfSymbol(target.symbol);
0 commit comments