expander: fix cross-module reference to gensym
ed name
This commit is contained in:
parent
95333f6fe8
commit
5ba83c6340
|
@ -49,8 +49,10 @@
|
||||||
(define defined-sym
|
(define defined-sym
|
||||||
(if (and (not (defined-as-other? (hash-ref defined-syms-at-phase sym #f) id phase top-level-bind-scope))
|
(if (and (not (defined-as-other? (hash-ref defined-syms-at-phase sym #f) id phase top-level-bind-scope))
|
||||||
;; Only use `sym` directly if there are no
|
;; Only use `sym` directly if there are no
|
||||||
;; extra scopes on the binding form
|
;; extra scopes on the binding form...
|
||||||
(no-extra-scopes? id all-scopes-stx top-level-bind-scope phase))
|
(no-extra-scopes? id all-scopes-stx top-level-bind-scope phase)
|
||||||
|
;; ... and if it's interned
|
||||||
|
(symbol-interned? sym))
|
||||||
sym
|
sym
|
||||||
(let loop ([pos 1])
|
(let loop ([pos 1])
|
||||||
(define s (string->unreadable-symbol (format "~a.~a" sym pos)))
|
(define s (string->unreadable-symbol (format "~a.~a" sym pos)))
|
||||||
|
|
|
@ -32412,11 +32412,14 @@ static const char *startup_source =
|
||||||
" id_52"
|
" id_52"
|
||||||
" phase_81"
|
" phase_81"
|
||||||
" top-level-bind-scope_3))"
|
" top-level-bind-scope_3))"
|
||||||
"(no-extra-scopes?"
|
"(if(no-extra-scopes?"
|
||||||
" id_52"
|
" id_52"
|
||||||
" all-scopes-stx_3"
|
" all-scopes-stx_3"
|
||||||
" top-level-bind-scope_3"
|
" top-level-bind-scope_3"
|
||||||
" phase_81)"
|
" phase_81)"
|
||||||
|
"(symbol-interned?"
|
||||||
|
" sym_9)"
|
||||||
|
" #f)"
|
||||||
" #f)"
|
" #f)"
|
||||||
" sym_9"
|
" sym_9"
|
||||||
"((letrec-values(((loop_91)"
|
"((letrec-values(((loop_91)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user