summary refs log tree commit diff stats
path: root/tests/template/thygienictempl.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template/thygienictempl.nim')
-rw-r--r--tests/template/thygienictempl.nim10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/template/thygienictempl.nim b/tests/template/thygienictempl.nim
index 5e4f534f8..9020c3e28 100644
--- a/tests/template/thygienictempl.nim
+++ b/tests/template/thygienictempl.nim
@@ -1,8 +1,12 @@
+discard """
+action: compile
+"""
+
 
 var
   e = "abc"
 
-raise newException(EIO, e & "ha!")
+raise newException(IOError, e & "ha!")
 
 template t() = echo(foo)
 
@@ -10,9 +14,9 @@ var foo = 12
 t()
 
 
-template test_in(a, b, c: expr): bool {.immediate, dirty.} =
+template test_in(a, b, c: untyped): bool {.dirty.} =
   var result {.gensym.}: bool = false
   false
 
-when isMainModule:
+when true:
   assert test_in(ret2, "test", str_val)