diff options
Diffstat (limited to 'tests/proc/t17157.nim')
-rw-r--r-- | tests/proc/t17157.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/proc/t17157.nim b/tests/proc/t17157.nim new file mode 100644 index 000000000..020e93fce --- /dev/null +++ b/tests/proc/t17157.nim @@ -0,0 +1,6 @@ +discard """ + errormsg: "'untyped' is only allowed in templates and macros or magic procs" +""" + +template something(op: proc (v: untyped): void): void = + discard |