summary refs log tree commit diff stats
path: root/tests/errmsgs/t4756.nim
blob: 262614ba077c41951b1183a2076a2508e07b09de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
errormsg: "type mismatch: got <string, arr: seq[empty]>"
line: 15
"""

# https://github.com/nim-lang/Nim/issues/4756

type
  Test* = ref object
    name*: string

proc newTest(name: string, arr: seq): Test =
    result = Test(name: name)

let test = newTest("test", arr = @[])