import std/tables func make_tab(): Table[int, string] {.compiletime.} = var tab = newTable[int, string]() tab[1] = "foo" tab[666] = "bar" tab[] const TAB = make_tab() echo TAB.type