aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-getattrpos-functionargs.nix
blob: 11d6bb0e3ac9f638b8f2f6b70935836b3cca6bbe (plain)
1
2
3
4
let
  fun = { foo }: {};
  pos = builtins.unsafeGetAttrPos "foo" (builtins.functionArgs fun);
in { inherit (pos) column line; file = baseNameOf pos.file; }