UPDATE: Nim doesn't have defaults for generic types (see the answer).
Why Nim doesn't use default value for generic type?
I would like to have ability to have different Company versions, but I don't want to specify the generic type parameter Company[void]() when I don't need it and just use Company().
But it doesn't work that way, code below won't compile, why? And what's the point of default values for generic type then?
type Company*[T = void] = object
name*: string
data*: T
echo Company()