diff options
Diffstat (limited to 'test/testdata/eval-okay-getattrpos.nix')
-rw-r--r-- | test/testdata/eval-okay-getattrpos.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-getattrpos.nix b/test/testdata/eval-okay-getattrpos.nix new file mode 100644 index 0000000..ca6b079 --- /dev/null +++ b/test/testdata/eval-okay-getattrpos.nix | |||
@@ -0,0 +1,6 @@ | |||
1 | let | ||
2 | as = { | ||
3 | foo = "bar"; | ||
4 | }; | ||
5 | pos = builtins.unsafeGetAttrPos "foo" as; | ||
6 | in { inherit (pos) column line; file = baseNameOf pos.file; } | ||