summary refs log tree commit diff stats
path: root/tests/macros/tstaticparamsmacro.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/tstaticparamsmacro.nim')
-rw-r--r--tests/macros/tstaticparamsmacro.nim21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/macros/tstaticparamsmacro.nim b/tests/macros/tstaticparamsmacro.nim
index f6ecb3a9f..2632ca730 100644
--- a/tests/macros/tstaticparamsmacro.nim
+++ b/tests/macros/tstaticparamsmacro.nim
@@ -1,14 +1,15 @@
 discard """
-  msg: '''letters
+  nimout: '''
+letters
 aa
 bb
 numbers
 11
 22
 AST a
-[(11, 22), (33, 44)]
+@[(c: 11, d: 22), (c: 33, d: 44)]
 AST b
-(e: [55, 66], f: [77, 88])
+(e: @[55, 66], f: @[77, 88])
 55
 10
 20Test
@@ -25,7 +26,7 @@ type
 
 const data: Tconfig = (@["aa", "bb"], @[11, 22])
 
-macro mymacro(data: static[TConfig]): stmt =
+macro mymacro(data: static[TConfig]): untyped =
   echo "letters"
   for s in items(data.letters):
     echo s
@@ -43,11 +44,11 @@ const
   a : Ta = @[(11, 22), (33, 44)]
   b : Tb = (@[55,66], @[77, 88])
 
-macro mA(data: static[Ta]): stmt =
-  echo "AST a \n", repr(data)
+macro mA(data: static[Ta]): untyped =
+  echo "AST a\n", repr(data)
 
-macro mB(data: static[Tb]): stmt =
-  echo "AST b \n", repr(data)
+macro mB(data: static[Tb]): untyped =
+  echo "AST b\n", repr(data)
   echo data.e[0]
 
 mA(a)
@@ -56,13 +57,13 @@ mB(b)
 type
   Foo[N: static[int], Z: static[string]] = object
 
-macro staticIntMacro(f: static[int]): stmt = echo f
+macro staticIntMacro(f: static[int]): untyped = echo f
 staticIntMacro 10
 
 var
   x: Foo[20, "Test"]
 
-macro genericMacro[N; Z: static[string]](f: Foo[N, Z], ll = 3, zz = 12): stmt =
+macro genericMacro[N; Z: static[string]](f: Foo[N, Z], ll = 3, zz = 12): untyped =
   echo N, Z
 
 genericMacro x