???
-1
with 0.11.2 release on Windows (same problem on Linux). Any idea if I missed something?
proc f() =
echo(instantiationInfo().filename)
echo(instantiationInfo().line)
proc g() =
f()
g()
As the documentation shows, it works when used inside a template instead of a proc: http://nim-lang.org/docs/system.html#instantiationInfo,
template f =
echo instantiationInfo().filename
echo instantiationInfo().line
proc g =
f()
g()