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.
1 parent 0f8e60c commit 6a0d60fCopy full SHA for 6a0d60f
lib/cudadrv/error.jl
@@ -20,6 +20,7 @@ function Base.isequal(a::Optional, b::Optional)
20
end
21
Base.convert(::Type{Optional{T}}, ::Nothing) where T = Optional{T}()
22
Base.convert(::Type{Optional{T}}, x) where T = Optional{T}(convert(T, x))
23
+Base.convert(::Type{Optional{T}}, x::Optional) where T = convert(Optional{T}, x[])
24
25
26
"""
0 commit comments