summary refs log tree commit diff stats
path: root/tests/errmsgs/twrong_at_operator.nim
blob: 5413515cb36d3166767867e6d595e60043911c1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
errormsg: "type mismatch: got <array[0..0, type int]>"
line: 16
nimout: '''
twrong_at_operator.nim(16, 30) Error: type mismatch: got <array[0..0, type int]>
but expected one of:
proc `@`[T](a: openArray[T]): seq[T]
proc `@`[IDX, T](a: array[IDX, T]): seq[T]

expression: @[int]
'''
disabled: "32bit"
"""

# bug #7331
var seqOfStrings: seq[int] = @[int]