mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
17 lines
269 B
Nim
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
|