Skip to content

Commit

Permalink
fix: check more specific type first
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Aug 1, 2024
1 parent dc2f1d5 commit ea55aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ struct Fix{N,F,T} <: Function
elseif N < 1
throw(ArgumentError(LazyString("expected `N` in `Fix{N}` to be integer greater than 0, but got ", N)))
end
new{N,(f isa F ? F : Type{F}),_stable_typeof(x)}(f, x)
new{N,(f isa Type{F} ? Type{F} : F),_stable_typeof(x)}(f, x)
end
end

Expand Down

0 comments on commit ea55aeb

Please sign in to comment.