Skip to content

Commit dbb41cc

Browse files
committed
Minor change.
1 parent dc1727c commit dbb41cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/static.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Base.promote_rule(::Type{T}, ::Type{<:Static}) where {T >: Missing} = promote_ru
3030
for T [:Bool, :Missing, :BigFloat, :BigInt, :Nothing]
3131
# let S = :Any
3232
@eval begin
33-
Base.promote_rule(::Type{<:Static}, ::Type{$T}) = promote_rule(Int, $T)
34-
Base.promote_rule(::Type{$T}, ::Type{<:Static}) = promote_rule($T, Int)
33+
Base.promote_rule(::Type{S}, ::Type{$T}) where {S <: Static} = promote_rule(Int, $T)
34+
Base.promote_rule(::Type{$T}, ::Type{S}) where {S <: Static} = promote_rule($T, Int)
3535
end
3636
end
3737
Base.promote_rule(::Type{<:Static}, ::Type{<:Static}) = Int

0 commit comments

Comments
 (0)