diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-08 15:29:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 15:29:39 +0200 |
commit | 9ed097db7bc052964e87506527b49715e2ce9ff6 (patch) | |
tree | d88f2a6db23768f68444547761299e0df7e98634 /tests/lang | |
parent | 55cefd41d63368d4286568e2956afd535cb44018 (diff) | |
parent | c34e96f7e0d53894f302134b2f90f83b20ffd22a (diff) |
Merge pull request #3468 from Infinisil/functionArgsPositions
Make function arguments retain position info
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-okay-getattrpos-functionargs.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-getattrpos-functionargs.nix | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-getattrpos-functionargs.exp b/tests/lang/eval-okay-getattrpos-functionargs.exp new file mode 100644 index 000000000..7f9ac40e8 --- /dev/null +++ b/tests/lang/eval-okay-getattrpos-functionargs.exp @@ -0,0 +1 @@ +{ column = 11; file = "eval-okay-getattrpos-functionargs.nix"; line = 2; } diff --git a/tests/lang/eval-okay-getattrpos-functionargs.nix b/tests/lang/eval-okay-getattrpos-functionargs.nix new file mode 100644 index 000000000..11d6bb0e3 --- /dev/null +++ b/tests/lang/eval-okay-getattrpos-functionargs.nix @@ -0,0 +1,4 @@ +let + fun = { foo }: {}; + pos = builtins.unsafeGetAttrPos "foo" (builtins.functionArgs fun); +in { inherit (pos) column line; file = baseNameOf pos.file; } |