diff options
Diffstat (limited to 'tests/trmacros/tnoendlessrec.nim')
-rw-r--r-- | tests/trmacros/tnoendlessrec.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trmacros/tnoendlessrec.nim b/tests/trmacros/tnoendlessrec.nim index 53891bcc0..508770ca7 100644 --- a/tests/trmacros/tnoendlessrec.nim +++ b/tests/trmacros/tnoendlessrec.nim @@ -4,7 +4,7 @@ discard """ # test that an endless recursion is avoided: -template optLen{len(x)}(x: expr): expr = len(x) +template optLen{len(x)}(x: typed): int = len(x) var s = "lala" echo len(s) |