The issue is typedesc/static in template is slightly broken, see [issue 1](https://github.com/nim-lang/Nim/issues/14053) (this exact issue), [issue 2](https://github.com/nim-lang/Nim/issues/13527) (points out a case where static works and typedesc doesnt), [issue 3](https://github.com/nim-lang/Nim/issues/7160) (this exact issue for typedesc).
- Understanding "Error: cannot evaluate at compile time&... spip
- Re: Understanding "Error: cannot evaluate at comp... juancarlospaco
- Re: Understanding "Error: cannot evaluate at ... Hlaaftana