File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 419
419
(map (lambda (x )
420
420
(if (assignment? x)
421
421
`(= ,(unescape (cadr x))
422
- ,(resolve-expansion-vars-with-new-env x env m parent-scope inarg))
422
+ ,(resolve-expansion-vars-with-new-env ( caddr x) env m parent-scope inarg))
423
423
(resolve-expansion-vars-with-new-env x env m parent-scope inarg)))
424
424
(cdr e))))
425
425
496
496
((and (eq? (car e) '= ) (not (function-def? e)))
497
497
(append! (filter symbol? (decl-vars* (cadr e)))
498
498
(find-assigned-vars-in-expansion (caddr e) #f )))
499
+ ((eq? (car e) 'tuple )
500
+ (apply append! (map (lambda (x )
501
+ (find-assigned-vars-in-expansion (if (assignment? x)
502
+ (caddr x)
503
+ x)
504
+ #f ))
505
+ (cdr e))))
499
506
(else
500
507
(apply append! (map (lambda (x )
501
508
(find-assigned-vars-in-expansion x #f ))
502
- e )))))
509
+ ( cdr e) )))))
503
510
504
511
(define (keywords-introduced-by e )
505
512
(let ((v (pattern-expand1 keywords-introduced-by-patterns e)))
Original file line number Diff line number Diff line change @@ -1762,3 +1762,11 @@ end
1762
1762
let f = capture_with_conditional_label () # should not throw
1763
1763
@test_throws UndefVarError (:x ) f (0 )
1764
1764
end
1765
+
1766
+ macro id28992 (x) x end
1767
+
1768
+ # issue #32121
1769
+ @test @id28992 ((a= 1 , b= 2 )) === (a= 1 , b= 2 )
1770
+ a32121 = 8
1771
+ b32121 = 9
1772
+ @test @id28992 ((a32121= a32121, b32121= b32121)) === (a32121= 8 , b32121= 9 )
You can’t perform that action at this time.
0 commit comments