proc does not take untyped/typed as argument (#9981)
* proc does not take untyped/typed as argument * Add TODO
This commit is contained in:
parent
37cb5e8f53
commit
730b1b2b87
3 changed files with 19 additions and 0 deletions
7
tests/proc/typed.nim
Normal file
7
tests/proc/typed.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "'typed' is only allowed in templates and macros"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
proc fun(x:typed)=discard
|
||||
fun(10)
|
||||
7
tests/proc/untyped.nim
Normal file
7
tests/proc/untyped.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "'untyped' is only allowed in templates and macros"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
proc fun(x:untyped)=discard
|
||||
fun(10)
|
||||
Loading…
Add table
Add a link
Reference in a new issue