Skip to content

Commit

Permalink
Use Base.kwdef instead of kwdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Jan 21, 2024
1 parent 9b4b899 commit 2c1f766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SumStructTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ macro sum_struct_type(type, struct_defs = nothing)
push!(default_each, a_comps[2][2])
end

struct_defs = [:(@kwdef $d) for d in struct_defs]
struct_defs = [:($Base.@kwdef $d) for d in struct_defs]

variants_defs = [:($t(ht::$ht)) for (t, ht) in zip(variants_types, hidden_struct_types)]

Expand Down

0 comments on commit 2c1f766

Please sign in to comment.