You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We need to override promote and promote_typeof because they don't even call
# promote_rule for all-same types.
Base.promote(::ST, ys::ST...) where {ST <:Static{X}} where {X} =ntuple(i->X, static(1+length(ys)))
Base.promote_type(::Type{ST}, ::Type{ST}) where {ST <:Static{X}} where {X} =typeof(X)
Base.promote_typeof(::ST, ::ST...) where {ST <:Static{X}} where {X} =typeof(X)
I know this package is somewhat special, but, ideally, you'd try to make issues and/or PRs to upstream (Julia) instead of just silently using internal implementation details. Especially with the new changes coming in the upcoming release (Julia v1.11).
The text was updated successfully, but these errors were encountered:
StaticNumbers.jl/src/StaticNumbers.jl
Lines 132 to 137 in baae4ce
I know this package is somewhat special, but, ideally, you'd try to make issues and/or PRs to upstream (Julia) instead of just silently using internal implementation details. Especially with the new changes coming in the upcoming release (Julia v1.11).
The text was updated successfully, but these errors were encountered: