aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-getattrpos.nix
blob: ca6b079615471bbd39b6d48fd92fe4773f023073 (plain)
1
2
3
4
5
6
let
  as = {
    foo = "bar";
  };
  pos = builtins.unsafeGetAttrPos "foo" as;
in { inherit (pos) column line; file = baseNameOf pos.file; }