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