summary refs log tree commit diff stats
path: root/tests/varstmt/tvardecl.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/varstmt/tvardecl.nim')
-rw-r--r--tests/varstmt/tvardecl.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/varstmt/tvardecl.nim b/tests/varstmt/tvardecl.nim
index a6b508295..d5ccfafb7 100644
--- a/tests/varstmt/tvardecl.nim
+++ b/tests/varstmt/tvardecl.nim
@@ -1,8 +1,8 @@
 discard """
-  file: "tvardecl.nim"
   output: "44"
 """
 # Test the new variable declaration syntax
+import std/sequtils
 
 var
   x = 0
@@ -10,6 +10,10 @@ var
   a, b: int = 4
 
 write(stdout, a)
-write(stdout, b) #OUT 44
+writeLine(stdout, b) #OUT 44
 
+proc p() = # bug #18104
+  var x, y = newSeqWith(10, newString(3))
+  discard (x, y)
 
+p()