mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 21:17:48 +00:00
19 lines
419 B
Nim
19 lines
419 B
Nim
# module b for t22373
|
|
|
|
import m22373a
|
|
|
|
# original:
|
|
type
|
|
LightClientDataFork* {.pure.} = enum
|
|
None = 0,
|
|
Altair = 1
|
|
template LightClientHeader*(kind: static LightClientDataFork): auto =
|
|
when kind == LightClientDataFork.Altair:
|
|
typedesc[m22373a.LightClientHeader]
|
|
else:
|
|
static: raiseAssert "Unreachable"
|
|
|
|
# simplified:
|
|
template TypeOrTemplate*(num: int): untyped =
|
|
typedesc[m22373a.TypeOrTemplate]
|