diff options
Diffstat (limited to 'tests/errmsgs/t4756.nim')
-rw-r--r-- | tests/errmsgs/t4756.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/errmsgs/t4756.nim b/tests/errmsgs/t4756.nim new file mode 100644 index 000000000..262614ba0 --- /dev/null +++ b/tests/errmsgs/t4756.nim @@ -0,0 +1,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 = @[]) + |