fixes #7331
This commit is contained in:
parent
403c19fba0
commit
3979e83a59
2 changed files with 17 additions and 1 deletions
15
tests/errmsgs/twrong_at_operator.nim
Normal file
15
tests/errmsgs/twrong_at_operator.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <array[0..0, type int]>"
|
||||
line: 15
|
||||
nimout: '''
|
||||
twrong_at_operator.nim(15, 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]
|
||||
'''
|
||||
"""
|
||||
|
||||
# bug #7331
|
||||
var seqOfStrings: seq[int] = @[int]
|
||||
Loading…
Add table
Add a link
Reference in a new issue