Newer unbound identifier messages added by megane on Sat Apr 3 12:38:57 2021

tmpdir/ $ cat -n test.scm
     1	(module
     2	 test () (import (except scheme set!))
     3	 (define-syntax mac
     4	   (ir-macro-transformer
     5	    (lambda (e i c)
     6	      `(set!))))
     7	 (define (foo)
     8	   (+ bar)
     9	   (lambda ()
    10	     (mac)
    11	     (+ baz))
    12	   (+ fx+)
    13	   (lambda ()
    14	     (+ baz)
    15	     (mac)))
    16	 (define (quux)
    17	   (+ fx+))
    18	 )

-------------------- Current

Warning: reference to possibly unbound identifier `bar' in:
Warning:    foo

Warning: reference to possibly unbound identifier `set!'
Warning:    suggesting one of:
Warning:    (import srfi-17)
Warning:    (import r5rs-null)
Warning:    (import r4rs-null)
Warning:    (import scheme)
Warning:    (import r4rs)

Warning: reference to possibly unbound identifier `baz'

Warning: reference to possibly unbound identifier `fx+' in:
Warning:    quux
Warning:    foo
Warning:    suggesting: `(import chicken.fixnum)'

Error: module unresolved: test


-------------------- New

Error: Module `test' has unresolved identifiers
  In file `test.scm'

  Unknown identifier `bar'
    in function `foo', line 8

  Unknown identifier `set!'
    in line 9
    in line 15

    Hint: Try importing one of these modules:
       r5rs-null
       r4rs-null
       scheme
       r4rs

  Unknown identifier `baz'
    in line 11
    in line 14

  Unknown identifier `fx+'
    in function `foo', line 12
    in function `quux', line 17

    Hint: Try importing module `chicken'