fix tests

This commit is contained in:
Timothee Cour 2019-07-06 20:09:26 -07:00
commit b80d70b0f3
11 changed files with 153 additions and 73 deletions

View file

@ -1,11 +1,17 @@
discard """
errormsg: "type mismatch: got <array[0..0, type int]>"
line: 16
line: 22
nimout: '''
twrong_at_operator.nim(16, 30) Error: type mismatch: got <array[0..0, type int]>
twrong_at_operator.nim(22, 30) Error: type mismatch: got <array[0..0, type int]>
but expected one of:
proc `@`[T](a: openArray[T]): seq[T]
first type mismatch at position: 1
required type for a: openarray[T]
but expression '[int]' is of type: array[0..0, type int]
proc `@`[IDX, T](a: array[IDX, T]): seq[T]
first type mismatch at position: 1
required type for a: array[IDX, T]
but expression '[int]' is of type: array[0..0, type int]
expression: @[int]
'''