c17f6c783 ^
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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