Here a mini example which displays this error on nim-devel : #cxtimeb.nim import sequtils template doit():untyped = ## doit ## return output only toSeq([1,2,3,4,5]) echo doit() Run
Output ok : @[1, 2, 3, 4, 5] Run nim doc cxtimeb.nim /home/lxuser/.cache/nim/cxtimeb_d/runnableExamples/cxtimeb_examples1.nim(15, 12) Error: undeclared identifier: 'toSeq' [runnableExamples] failed: generated file: '/home/lxuser/.cache/nim/cxtimeb_d/runnableExamples/cxtimeb_group0_examples.nim' group: '(rdoccmd: "", docCmd: "" Run