type B[S: static[int]] = object
template foo(size: static[int]): auto = B[size]()
echo foo(16).repr
RunWorks on my machine
type B[S: static[int]] = object
template foo(size: static[int]): auto = B[size]()
echo foo(16).repr
RunWorks on my machine