forked from lix-project/lix
f7e3a0b19f
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.
7 lines
198 B
Plaintext
7 lines
198 B
Plaintext
error: attribute 'x' already defined at «stdin»:9:5
|
|
at «stdin»:10:18:
|
|
9| x = 789;
|
|
10| inherit (as) x;
|
|
| ^
|
|
11| };
|