diff options
author | flywind <xzsflywind@gmail.com> | 2021-03-27 16:51:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 01:51:57 -0700 |
commit | b1b767ed0db19b337ab41fab9241227d23aaae38 (patch) | |
tree | c193f98c0c31012600111d78941893761da88f0c | |
parent | 3e03f6733548fecb328214e0c8632fa4916992ed (diff) | |
download | Nim-b1b767ed0db19b337ab41fab9241227d23aaae38.tar.gz |
close #17157 add testcase (#17531)
-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 |