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