mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
1edd6fada5
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.
6 lines
198 B
Text
6 lines
198 B
Text
error: attribute 'x' already defined at «stdin»:9:5
|
|
at «stdin»:10:18:
|
|
9| x = 789;
|
|
10| inherit (as) x;
|
|
| ^
|
|
11| };
|