parent
d701de5733
commit
a20a8e6adb
2 changed files with 22 additions and 2 deletions
16
tests/errmsgs/t4756.nim
Normal file
16
tests/errmsgs/t4756.nim
Normal file
|
|
@ -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 = @[])
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue