t4756.nim 290 B

1234567891011121314151617
  1. discard """
  2. errormsg: "type mismatch: got <string, arr: seq[empty]>"
  3. line: 15
  4. """
  5. # https://github.com/nim-lang/Nim/issues/4756
  6. type
  7. Test* = ref object
  8. name*: string
  9. proc newTest(name: string, arr: seq): Test =
  10. result = Test(name: name)
  11. let test = newTest("test", arr = @[])