diff --git a/base/operators.jl b/base/operators.jl index de5e52987a278..c24a82d4fa4a5 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -940,7 +940,7 @@ struct Returns{V} <: Function Returns(value) = new{Core.Typeof(value)}(value) end -(obj::Returns)(args...; kw...) = obj.value +(obj::Returns)(@nospecialize(args...); @nospecialize(kw...)) = obj.value function show(io::IO, obj::Returns) show(io, typeof(obj)) print(io, "(")