Nix/tests/lang/eval-okay-curpos.nix
Eelco Dolstra fc33fd86b7 Add a symbol __curPos that expands to the current source location
I.e. an attribute set { file = <string>; line = <int>; column = <int>; }.
2013-11-18 20:16:02 +01:00

6 lines
83 B
Nix

# Bla
let
x = __curPos;
y = __curPos;
in [ x.line x.column y.line y.column ]