close #17157 add testcase (#17531)

This commit is contained in:
flywind 2021-03-27 16:51:57 +08:00 • committed by GitHub
commit b1b767ed0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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