From ea55aeb38334aee4ee39e767efab4b18a2dfbe8c Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Thu, 1 Aug 2024 17:52:10 +0100 Subject: [PATCH] fix: check more specific type first --- base/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/operators.jl b/base/operators.jl index 66fe9aecf94c6b..3936925bbbb1b1 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -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