I think you can put the type on the left side and omit it on the right side, like . code-block:: nimrod var test: OdArray[10, int] = initOdArray(100) (have not checked, though)