Should I report this as a bug? I know I can change the file name to resolve the problem, but it works well before I use table.
foo.nim
type
foo* = ref object of RootObj
data: int
bug.nim
import tables
import foo
type
R = ref object of RootObj
T: Table[int, foo]
var f: foo # succeed
# var r: R # Error: internal error: getTypeDescAux(tyVoid)
I know I can change the file name to resolve the problem
Or, more pragmatically, you change the name of the type to Foo (uppercase F), as that is the idiomatic Nim.