The following code causes this error (found in nim-xv6):
type
SegDescPointer* = ptr array [8, int8]
How to write this definition correctly?
Spacing matters:
type
SegDescPointer* = ptr array[8, int8]
https://play.nim-lang.org/#ix=2EWI
I think that in your case, the compiler considers [8, int8] as a array constructor.