1
0
Fork 0
forked from lix-project/lix
lix/tests/lang/eval-okay-getattrpos-functionargs.exp
Silvan Mosberger c34e96f7e0
Make function arguments retain position info
This allows querying the location of function arguments. E.g.

  builtins.unsafeGetAttrPos "x" (builtins.functionArgs ({ x }: null))

  => { column = 57; file = "/home/infinisil/src/nix/inst/test.nix"; line = 1; }
2020-04-02 05:52:52 +02:00

2 lines
75 B
Plaintext

{ column = 11; file = "eval-okay-getattrpos-functionargs.nix"; line = 2; }