Skip to content

Error while trying to macroexpand a defn form having its attr-map? set #1186

@ikappaki

Description

@ikappaki

Hi,

there appears to be an issue when trying to macroexpand a defn form with an attr-map? set:
error occurred during macroexpansion: Object of type <class 'basilisp.lang.list.PersistentList'> does not implement IAssociative interface

to reproduce

  • Open up the REPL and try to macroexpand a defn form having attr-map? set, the above error is raised
> basilisp repl
basilisp.user=> (macroexpand '(defn xyz {:abc true} [] 5))

  exception: <class 'TypeError'> from <class 'basilisp.lang.compiler.exception.CompilerException'>
      phase: :macroexpansion
    message: error occurred during macroexpansion: Object of type <class 'basilisp.lang.list.PersistentList'> does not implement IAssociative interface
       form: (defn xyz {:abc true} [] 5)
   location: <Macroexpand>:NO_SOURCE_LINE

PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions