Skip to content

Commit

Permalink
try an internal constructor again
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Oct 16, 2024
1 parent 9f6d11a commit 5c2f7ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/C4Blade/C4Blade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ struct Section{TFr,TFc,TFt,TAF}
chord::TFc
theta::TFt
af::TAF
Section(r,chord,theta,af) = new(promote(r,chord,theta)..., af)
function Section(r,chord,theta,af)
r, chord, theta = promote(r, chord, theta)
new(r,chord,theta, af)
end
end

# # promote to same type, e.g., duals
Expand Down

0 comments on commit 5c2f7ee

Please sign in to comment.