Skip to content

Commit 6a0d60f

Browse files
committed
Disambiguate conversion.
1 parent 0f8e60c commit 6a0d60f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cudadrv/error.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function Base.isequal(a::Optional, b::Optional)
2020
end
2121
Base.convert(::Type{Optional{T}}, ::Nothing) where T = Optional{T}()
2222
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[])
2324

2425

2526
"""

0 commit comments

Comments
 (0)