fixes #217
This commit is contained in:
parent
2193460ea6
commit
ffcbe19cd8
3 changed files with 13 additions and 7 deletions
6
tests/compile/tprocvars.nim
Normal file
6
tests/compile/tprocvars.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
proc doSomething(v: Int, x: proc(v:Int):Int): Int = return x(v)
|
||||
proc doSomething(v: Int, x: proc(v:Int)) = x(v)
|
||||
|
||||
|
||||
echo doSomething(10, proc(v: Int): Int = return v div 2)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue