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