We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nospecialize
1 parent d97dd8e commit 1916d35Copy full SHA for 1916d35
base/deepcopy.jl
@@ -21,7 +21,7 @@ so far within the recursion. Within the definition, `deepcopy_internal` should b
21
in place of `deepcopy`, and the `dict` variable should be
22
updated as appropriate before returning.
23
"""
24
-function deepcopy(x)
+function deepcopy(@nospecialize x)
25
isbitstype(typeof(x)) && return x
26
return deepcopy_internal(x, IdDict())::typeof(x)
27
end
0 commit comments