Skip to content

Commit

Permalink
add @nospecialize annotations for Returns (JuliaLang#44853)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Apr 5, 2022
1 parent 7a61fc0 commit e9150a1
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 @@ -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, "(")
Expand Down

0 comments on commit e9150a1

Please sign in to comment.