diff options
author | eldritch horrors <pennae@lix.systems> | 2024-01-29 06:19:23 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-18 16:12:45 +0100 |
commit | 9cf92c012d81bdd8df60a51f7cbcdb4812544c46 (patch) | |
tree | be0494f264fa49ebf57c9409852ca67451aa5ffa /tests/functional/lang/eval-fail-dupAttr-inherit.err.exp | |
parent | d826427f022308f9ec2ee8f0ec9f7df85089fdf7 (diff) |
report inherit attr errors at the duplicate name
previously we reported the error at the beginning of the binding
block (for plain inherits) or the beginning of the attr list (for
inherit-from), effectively hiding where exactly the error happened.
this also carries over to runtime positions of attributes in sets as
reported by unsafeGetAttrPos. we're not worried about this changing
observable eval behavior because it *is* marked unsafe, and the new
behavior is much more useful.
(cherry picked from commit 1edd6fada53553b89847ac3981ac28025857ca02)
Change-Id: I2f50eb9f3dc3977db4eb3e3da96f1cb37ccd5174
Diffstat (limited to 'tests/functional/lang/eval-fail-dupAttr-inherit.err.exp')
-rw-r--r-- | tests/functional/lang/eval-fail-dupAttr-inherit.err.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/lang/eval-fail-dupAttr-inherit.err.exp b/tests/functional/lang/eval-fail-dupAttr-inherit.err.exp index 7744b838f..3e6475a1c 100644 --- a/tests/functional/lang/eval-fail-dupAttr-inherit.err.exp +++ b/tests/functional/lang/eval-fail-dupAttr-inherit.err.exp @@ -1,4 +1,4 @@ -error: attribute 'a' already defined at /pwd/lang/eval-fail-dupAttr-inherit.nix:1:15 +error: attribute 'a' already defined at /pwd/lang/eval-fail-dupAttr-inherit.nix:1:16 at /pwd/lang/eval-fail-dupAttr-inherit.nix:1:19: 1| { inherit ({}) a; a.b = 1; } | ^ |