Nim/tests/proc/untyped.nim
Neelesh Chandola 730b1b2b87 proc does not take untyped/typed as argument (#9981)
* proc does not take untyped/typed as argument

* Add TODO
2018-12-19 16:18:57 +01:00

7 lines
127 B
Nim

discard """
errormsg: "'untyped' is only allowed in templates and macros"
line: 6
"""
proc fun(x:untyped)=discard
fun(10)