summary refs log tree commit diff stats
path: root/compiler/vmconv.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/vmconv.nim')
-rw-r--r--compiler/vmconv.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/vmconv.nim b/compiler/vmconv.nim
index 7db3906c2..b82fb2ff3 100644
--- a/compiler/vmconv.nim
+++ b/compiler/vmconv.nim
@@ -28,6 +28,10 @@ proc toLit*[T](a: T): PNode =
   elif T is tuple:
     result = newTree(nkTupleConstr)
     for ai in fields(a): result.add toLit(ai)
+  elif T is seq:
+    result = newNode(nkBracket)
+    for ai in a:
+      result.add toLit(ai)
   elif T is object:
     result = newTree(nkObjConstr)
     result.add(newNode(nkEmpty))