-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
component:basilisp.coreIssue pertaining to basilisp.core namespaceIssue pertaining to basilisp.core namespaceissue-type:bugSomething isn't workingSomething isn't working
Description
Hi,
there appears to be an issue with calling a macro that defines a multiarity function
error occurred during macroexpansion: Expected an argument vector {:found ([] 5)}
To reproduce, open up the REPL and call the macro defining the multiarity function
> basilisp repl
basilisp.user=> (defmacro issue [] `(defn y ([] 5)))
#'basilisp.user/issue
basilisp.user=> (issue)
exception: <class 'basilisp.lang.exception.ExceptionInfo'> from <class 'basilisp.lang.compiler.exception.CompilerException'>
phase: :macroexpansion
message: error occurred during macroexpansion: Expected an argument vector {:found ([] 5)}
form: (basilisp.core/defn basilisp.user/y ([] 5))
location: <REPL Input>:1The same works in Clojure as expected
> clj
Clojure 1.7.0
user=> (defmacro issue [] `(defn y ([] 5)))
#'user/issue
user=> (issue)
#'user/y
user=> (y)
5Thanks
Metadata
Metadata
Assignees
Labels
component:basilisp.coreIssue pertaining to basilisp.core namespaceIssue pertaining to basilisp.core namespaceissue-type:bugSomething isn't workingSomething isn't working