summary refs log tree commit diff stats
path: root/tests/template/mgensym_generic_cross_module.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template/mgensym_generic_cross_module.nim')
-rw-r--r--tests/template/mgensym_generic_cross_module.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template/mgensym_generic_cross_module.nim b/tests/template/mgensym_generic_cross_module.nim
index 80b681db4..ea88f67e6 100644
--- a/tests/template/mgensym_generic_cross_module.nim
+++ b/tests/template/mgensym_generic_cross_module.nim
@@ -1,6 +1,6 @@
 
-template makeDomElement(x: untyped, name: string = nil) =
-  const tag {.gensym.} = if name == nil: astToStr(x) else: name
+template makeDomElement(x: untyped, name: string = "") =
+  const tag {.gensym.} = if name.len == 0: astToStr(x) else: name
 
   proc x*(p: int|float) =
     echo tag, p