Files
Nim/tests/package_level_objects/tusefoo.nim
2017-10-29 07:54:39 +01:00

17 lines
269 B
Nim

discard """
output: '''@[(x: 3, y: 4)]'''
"""
type
mypackage.Foo = object
Other = proc (inp: Foo)
import definefoo
# after this import, Foo is a completely resolved type, so
# we can create a sequence of it:
var s: seq[Foo] = @[]
s.add Foo(x: 3, y: 4)
echo s