From 08939ff3a4873497de31dcfdd79489f6722e1641 Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Mon, 4 Apr 2022 15:05:09 -0400 Subject: [PATCH] @nospecialize for Returns --- base/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "(")