mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
17 lines
290 B
Nim
17 lines
290 B
Nim
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 = @[])
|
|
|