aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-getattrpos.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-okay-getattrpos.nix')
-rw-r--r--tests/lang/eval-okay-getattrpos.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-getattrpos.nix b/tests/lang/eval-okay-getattrpos.nix
new file mode 100644
index 000000000..ca6b07961
--- /dev/null
+++ b/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; }