diff options
author | Araq <rumpf_a@web.de> | 2013-03-17 20:11:16 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-17 20:11:16 +0100 |
commit | 6ed18a8b2488821df057d38fabb1d7cd921d97e7 (patch) | |
tree | 31c0036108f1f6b497b2aab3b2cf33ec49704147 /tests | |
parent | 3703bb929b6214fa9fcafe32d03f7b0c46907e54 (diff) | |
download | Nim-6ed18a8b2488821df057d38fabb1d7cd921d97e7.tar.gz |
fixes #366
Diffstat (limited to 'tests')
-rw-r--r-- | tests/compile/tobjconstr2.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/compile/tobjconstr2.nim b/tests/compile/tobjconstr2.nim new file mode 100644 index 000000000..ef5446999 --- /dev/null +++ b/tests/compile/tobjconstr2.nim @@ -0,0 +1,8 @@ +type TFoo{.exportc.} = object + x:int + +var s{.exportc.}: seq[TFoo] = @[] + +s.add TFoo(x: 42) + +echo s[0].x |