Typed Racket: reference `#%type-decl' through a module path index
Avoid problems with absolute paths and bytecode files.
This commit is contained in:
parent
fb64f06eaf
commit
f34a689bd7
|
@ -8,7 +8,7 @@
|
|||
(parameterize ([current-namespace ns])
|
||||
(for ([m (in-list to-require)]
|
||||
#:when m)
|
||||
(dynamic-require (collapse-module-path '(submod "." #%type-decl) m)
|
||||
(dynamic-require (module-path-index-join '(submod "." #%type-decl) m)
|
||||
#f))))
|
||||
|
||||
(provide add-mod! do-requires)
|
||||
|
|
|
@ -392,7 +392,8 @@
|
|||
(match a
|
||||
[(list from to)
|
||||
#`(add-alias (quote-syntax #,from) (quote-syntax #,to))]))))
|
||||
(begin-for-syntax (add-mod! (quote-module-path))))
|
||||
(begin-for-syntax (add-mod! (variable-reference->module-path-index
|
||||
(#%variable-reference)))))
|
||||
#`(begin
|
||||
#,(if (null? (syntax-e #'(new-provs ...)))
|
||||
#'(begin)
|
||||
|
|
Loading…
Reference in New Issue
Block a user