m22373b.nim 419 B

12345678910111213141516171819
  1. # module b for t22373
  2. import m22373a
  3. # original:
  4. type
  5. LightClientDataFork* {.pure.} = enum
  6. None = 0,
  7. Altair = 1
  8. template LightClientHeader*(kind: static LightClientDataFork): auto =
  9. when kind == LightClientDataFork.Altair:
  10. typedesc[m22373a.LightClientHeader]
  11. else:
  12. static: raiseAssert "Unreachable"
  13. # simplified:
  14. template TypeOrTemplate*(num: int): untyped =
  15. typedesc[m22373a.TypeOrTemplate]