summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-02-17 20:44:11 +0200
committerZahary Karadjov <zahary@gmail.com>2014-02-17 20:44:11 +0200
commiteaab22089da855163485949d8bd6a6ae9c1d25c8 (patch)
treee2efcda3c7e0e0517346a262c69dddce70ed8588 /tests
parent9dd753f218cb3f8a3460d66cf4f917fab74eb233 (diff)
downloadNim-eaab22089da855163485949d8bd6a6ae9c1d25c8.tar.gz
fix #807
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tdestructor.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/destructor/tdestructor.nim b/tests/destructor/tdestructor.nim
index f10c0cc9c..e5236aaab 100644
--- a/tests/destructor/tdestructor.nim
+++ b/tests/destructor/tdestructor.nim
@@ -80,13 +80,13 @@ proc mygeneric1() =
   echo "mygeneric1 constructed"
 
 proc mygeneric2[T](val: T) =
-  var
-    a = open()
-    b = TMyGeneric2[int, T](x: 10, y: val)
-    c = TMyGeneric3[int, int, string](x: 10, y: 20, z: "test")
-
+  var a = open()
+  
+  var b = TMyGeneric2[int, T](x: 10, y: val)
   echo "mygeneric2 constructed"
 
+  var c = TMyGeneric3[int, int, string](x: 10, y: 20, z: "test")
+  
 proc mygeneric3 =
   var x = TMyGeneric3[int, string, TMyGeneric1[int]](
     x: 10, y: "test", z: TMyGeneric1[int](x: 10))