I'm surprised that this fails to compile: const size = 6 type A = range[0..<size] and I have to type this instead: const size = 6 type A = range[0..(size - 1)] I thought it would be the same.