-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I am experimenting with macros that define a struct. Here's an MWE of my problem:
using Parameters
macro structmacro()
return quote struct mystruct; myfield::Int; end end
end
@with_kw @structmacro
gives
ERROR: LoadError: @with_kw only supported for types which have at least one field.
Seems that @with_kw
does not expand @structmacro
into a struct declaration. The solution is probably analogous to #21
Metadata
Metadata
Assignees
Labels
No labels