import-for-syntax from the same file added by Kooda on Mon Jul 2 14:58:25 2018

(module foo (hello)
(import scheme)
(define (hello) "hello world\n"))

(module bar ()
(import scheme)
(import-for-syntax foo)
(define-syntax hi
  (er-macro-transformer
    (lambda (f r c)
      `(,(r 'display) ,(hello)))))
(hi))

;; CHICKEN 4:
;; Error: during expansion of (hi ...) - unbound variable: foo#hello

;; CHICKEN 5:
;; Error: (require) cannot load extension: foo