I try to init array with the following expression:
const a: array[3, uint8] = [1, 2, 3]
echo repr(a)
Compiler output:
Error: type mismatch: got <array[0..2, int]> but expected 'array[0..2, uint8]'
Is there a conventional way to do it?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…