enum A {
a = 1,
b = 2
}
namespace N1 {
export enum A {
a = 1,
b = 2
}
}
// it will pass type check
console.log(A.a === N1.A.a)
when I remove const keyword, the expression will pass type check.
But if const was added, tsc says
This condition will always return 'false' since the types 'A' and 'N1.A' have no overlap.
I want to know how enums in TS compare enum value under the hood.
