diff options
Diffstat (limited to 'tests/compile/tobjconstr2.nim')
-rw-r--r-- | tests/compile/tobjconstr2.nim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/compile/tobjconstr2.nim b/tests/compile/tobjconstr2.nim deleted file mode 100644 index cb47e146d..000000000 --- a/tests/compile/tobjconstr2.nim +++ /dev/null @@ -1,22 +0,0 @@ -type TFoo{.exportc.} = object - x:int - -var s{.exportc.}: seq[TFoo] = @[] - -s.add TFoo(x: 42) - -echo s[0].x - - -# bug #563 -type - Foo = - object {.inheritable.} - x: int - - Bar = - object of Foo - y: int - -var a = Bar(y: 100, x: 200) # works -var b = Bar(x: 100, y: 200) # used to fail |