close #17157 add testcase (#17531)

This commit is contained in:
flywind
2021-03-27 16:51:57 +08:00
committed by GitHub
parent 3e03f67335
commit b1b767ed0d

6
tests/proc/t17157.nim Normal file
View File

@@ -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