Skip to content

Commit

Permalink
Revert "make inner constructor work"
Browse files Browse the repository at this point in the history
This reverts commit 4b68289.
  • Loading branch information
tengis-nrl committed Mar 26, 2024
1 parent 4b68289 commit a5942d8
Show file tree
Hide file tree
Showing 2 changed files with 269 additions and 269 deletions.
2 changes: 1 addition & 1 deletion src/system_descriptor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ struct SystemArgument
default::Any
allowed_values::Set{<:Any}

function SystemArgument(name, default, allowed_values)
function SystemArgument(; name, default, allowed_values)
isempty(allowed_values) && error("allowed_values cannot be empty")
new(name, default, allowed_values)
end
Expand Down
Loading

0 comments on commit a5942d8

Please sign in to comment.