You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array[0..1, int]
testNim.nim(11, 9) Error: type mismatch:
got <static[array[0..1, int]]([5, 6])>
but expected one of:
proc passSeq2[T](a: static seq[T])
first type mismatch at position: 1
required type for a: static[seq[T]]
but expression '[5, 6]' is of type: static[array[0..1, int]]([5, 6])
expression: passSeq2([5, 6])
Expected Output
seq[int]
@[5,6]
$ nim -v
Nim Compiler Version 1.2.2 [Windows: amd64]
The text was updated successfully, but these errors were encountered:
Example
Current Output
Expected Output
The text was updated successfully, but these errors were encountered: