forked from alex-eg/sex
report a module's macro call failing for other than its own names
Reading a module's interface dropped any toplevel call that raised, not only one asking after a declaration of the module's, which no importer has yet. Lookups now tell which names they missed, and only those failures give importers nothing.
This commit is contained in:
8
tests/modules/gen/broken.sex
Normal file
8
tests/modules/gen/broken.sex
Normal file
@@ -0,0 +1,8 @@
|
||||
;;; A toplevel macro call failing for what it is, not for asking after a
|
||||
;;; name declared here: an importer is told so, as this module is
|
||||
(defmacro (boom)
|
||||
(error "nope"))
|
||||
|
||||
(pub fn fine () int (return 1))
|
||||
|
||||
(boom)
|
||||
Reference in New Issue
Block a user