diff --git a/collects/mzlib/unit.ss b/collects/mzlib/unit.ss index f7343bd..74d40ac 100644 --- a/collects/mzlib/unit.ss +++ b/collects/mzlib/unit.ss @@ -1581,12 +1581,15 @@ (syntax-case stx () ((_ . x) #'x)))))) u)) - (define-syntax/err-param (define-compound-unit/infer stx) + (define-for-syntax (do-define-compound-unit/infer stx) (build-define-unit stx (lambda (clause) (build-compound-unit/infer (check-compound/infer-syntax clause))) "missing unit name")) + (define-syntax/err-param (define-compound-unit/infer stx) + (do-define-compound-unit/infer stx)) + (define-syntax/err-param (invoke-unit stx) (syntax-case stx (import) ((_ unit)