lix/tests/functional/lang/parse-fail-dup-attrs-3.err.exp
pennae f7e3a0b19f 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.
2024-02-26 15:49:56 +01:00

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| };