1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00
Files
guix/tests
Ludovic Courtès f0e22ae62c records: Warn about shadowing due to inherited field value bindings.
This is a followup to a7c8e68dc5: this commit
introduced a new binding in the body of field values, which could silently
shadow outer bindings.  This new warning catches potentially unwanted
shadowing.

* guix/records.scm (make-syntactic-constructor)[check-shadowing]: New
procedure.
[wrap-field-value]: Use it.
* tests/records.scm ("define-record-type* & inherited value shadowing"): New
test.

Change-Id: I81ad14cf10da7213e9f8db987c8b0bd4c41acba2
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #7424
2026-03-29 22:32:57 +02:00
..
2026-01-25 21:23:25 +01:00
2025-08-31 12:39:24 +02:00
2025-12-03 14:38:09 +09:00
2025-11-21 14:38:44 +01:00
2025-10-29 11:51:24 +09:00
2025-11-14 16:42:16 +09:00
2025-09-30 16:52:07 +09:00
2019-03-24 00:13:53 +01:00
2026-03-10 22:53:54 +01:00
2026-01-25 21:23:25 +01:00
2019-06-14 21:57:39 +02:00
2017-11-17 10:47:49 +01:00