mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Fix bound-identifier=? to compare binding names, not just symbolic names.
Fixes <http://bugs.gnu.org/16158>. * module/ice-9/psyntax.scm (bound-id=?): Use 'id-var-name' to compare binding names (gensyms), not just symbolic names. * module/ice-9/psyntax-pp.scm: Regenerate. * test-suite/tests/syntax.test: Add test.
This commit is contained in:
parent
032a16fced
commit
70c74b8476
3 changed files with 7 additions and 0 deletions
|
@ -1172,6 +1172,11 @@
|
|||
(r 'outer))
|
||||
#t)))
|
||||
|
||||
(pass-if "bound-identifier=?"
|
||||
(let* ((x 1) (s1 #'x)
|
||||
(x 2) (s2 #'x))
|
||||
(not (bound-identifier=? s1 s2))))
|
||||
|
||||
(with-test-prefix "syntax-case"
|
||||
|
||||
(pass-if-syntax-error "duplicate pattern variable"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue