summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorAndrii Riabushenko <cdome@bk.ru>2018-12-05 19:29:14 +0000
committerAndrii Riabushenko <cdome@bk.ru>2018-12-05 19:29:14 +0000
commit938d3ffad7cd3b76692c81ae983c3ce82b10c2d1 (patch)
treeb86918084aafa84f0eeccf5b29b8836934ccecbb /tests/destructor
parentca473d0f94cc27cd318b69b9f4ff63f842d4ebec (diff)
downloadNim-938d3ffad7cd3b76692c81ae983c3ce82b10c2d1.tar.gz
add test
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tmove_objconstr.nim11
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