mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 23:35:22 +00:00
fixes #217
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user