mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
b463318a6e
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
16 lines
172 B
TypeScript
16 lines
172 B
TypeScript
// @strict: true
|
|
|
|
enum E {
|
|
A = NaN,
|
|
B = NaN,
|
|
}
|
|
|
|
const a: E.A = E.B;
|
|
const b: E.B = E.A;
|
|
|
|
enum F {
|
|
X = NaN,
|
|
}
|
|
|
|
const c: E.A = F.X; // Error expected - different enums
|