Nim/tests/proc/typed.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
123 B
Nim

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