about summary refs log blame commit diff
path: root/tvix/eval/src/tests/nix_tests/eval-okay-getattrpos.nix
blob: ca6b079615471bbd39b6d48fd92fe4773f023073 (plain) (tree)
1
2
3
4
5
6





                                                             
let
  as = {
    foo = "bar";
  };
  pos = builtins.unsafeGetAttrPos "foo" as;
in { inherit (pos) column line; file = baseNameOf pos.file; }