Hi,
I am unsure if this is a bug or a feature ( I believe it is a bug) :
proc doSomething(v: Int, x: proc(v:Int)) = x(v)
doSomething(10, proc(v: Int): Int = return v div 2)
the code above compiles, but this leads, that this code does not compile anymore:
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)
error ambiguous call