ttypenameconflict.nim 178 B

1234567891011121314
  1. # issue #23689
  2. type
  3. MyEnum {.pure.} = enum
  4. A, B, C, D
  5. B = object
  6. field: int
  7. let x: MyEnum = B
  8. doAssert $x == "B"
  9. doAssert typeof(x) is MyEnum
  10. doAssert x in {A, B}