summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-27 16:51:57 +0800
committerGitHub <noreply@github.com>2021-03-27 01:51:57 -0700
commitb1b767ed0db19b337ab41fab9241227d23aaae38 (patch)
treec193f98c0c31012600111d78941893761da88f0c
parent3e03f6733548fecb328214e0c8632fa4916992ed (diff)
downloadNim-b1b767ed0db19b337ab41fab9241227d23aaae38.tar.gz
close #17157 add testcase (#17531)
-rw-r--r--tests/proc/t17157.nim6
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