diff options
author | Andrii Riabushenko <cdome@bk.ru> | 2018-12-05 19:29:14 +0000 |
---|---|---|
committer | Andrii Riabushenko <cdome@bk.ru> | 2018-12-05 19:29:14 +0000 |
commit | 938d3ffad7cd3b76692c81ae983c3ce82b10c2d1 (patch) | |
tree | b86918084aafa84f0eeccf5b29b8836934ccecbb /tests/destructor | |
parent | ca473d0f94cc27cd318b69b9f4ff63f842d4ebec (diff) | |
download | Nim-938d3ffad7cd3b76692c81ae983c3ce82b10c2d1.tar.gz |
add test
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/tmove_objconstr.nim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/destructor/tmove_objconstr.nim b/tests/destructor/tmove_objconstr.nim index 2ec167234..05562d5e0 100644 --- a/tests/destructor/tmove_objconstr.nim +++ b/tests/destructor/tmove_objconstr.nim @@ -151,4 +151,13 @@ seq4 = of 'B': quit(-1) else: let (x1, x2, x3) = myfunc2(2, 3) - x3 \ No newline at end of file + x3 + + +#------------------------------------------------------------ +#-- Move into array constructor +#------------------------------------------------------------ + +var ii = 1 +let arr2 = [newMySeq(2, 5.0), if i > 1: newMySeq(3, 1.0) else: newMySeq(0, 0.0)] +var seqOfSeq2 = @[newMySeq(2, 5.0), newMySeq(3, 1.0)] \ No newline at end of file |