Skip to content

Commit e9150a1

Browse files
authored
add @nospecialize annotations for Returns (#44853)
1 parent 7a61fc0 commit e9150a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ struct Returns{V} <: Function
940940
Returns(value) = new{Core.Typeof(value)}(value)
941941
end
942942

943-
(obj::Returns)(args...; kw...) = obj.value
943+
(obj::Returns)(@nospecialize(args...); @nospecialize(kw...)) = obj.value
944944
function show(io::IO, obj::Returns)
945945
show(io, typeof(obj))
946946
print(io, "(")

0 commit comments

Comments
 (0)