t22373.nim 461 B

1234567891011121314151617
  1. # issue #22373
  2. import m22373a
  3. import m22373b
  4. # original:
  5. template lazy_header(name: untyped): untyped {.dirty.} =
  6. var `name _ ptr`: ptr[data_fork.LightClientHeader] # this data_fork.Foo part seems required to reproduce
  7. proc createLightClientUpdates(data_fork: static LightClientDataFork) =
  8. lazy_header(attested_header)
  9. createLightClientUpdates(LightClientDataFork.Altair)
  10. # simplified:
  11. proc generic[T](abc: T) =
  12. var x: abc.TypeOrTemplate
  13. generic(123)