diff --git a/tests/proc/t17157.nim b/tests/proc/t17157.nim new file mode 100644 index 0000000000..020e93fce2 --- /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