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]>
20 lines
417 B
Plaintext
20 lines
417 B
Plaintext
enumNaNValues.ts(13,7): error TS2322: Type 'F' is not assignable to type 'E'.
|
|
|
|
|
|
==== enumNaNValues.ts (1 errors) ====
|
|
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
|
|
~
|
|
!!! error TS2322: Type 'F' is not assignable to type 'E'.
|
|
|