Skip to content

Commit

Permalink
Fix return type of constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 7, 2021
1 parent 3aec60c commit fae0b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/struct_of_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function struct_of_constraint_code(struct_name, types, field_types = nothing)
model::$typed_struct,
::Type{<:$fun},
::Type{<:$set},
) where {$T}
)::$(field_type) where {$T}
if model.$field === nothing
model.$field = $(field_type)()
end
Expand Down

0 comments on commit fae0b73

Please sign in to comment.