Skip to content

Commit

Permalink
fix ambiguities in stipple_parse for Type{<:Any}
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Mar 19, 2024
1 parent 21c3b32 commit 086c6e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stipple/parsers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,9 @@ end
# Union with Nothing
function stipple_parse(::Type{Union{Nothing, T}}, value) where T
stipple_parse(T, value)
end

# define an explicit function for Type{Any} to avoid ambiguities between Type{Union{Nothing, T}} and Type{T} (line 35 and line 64) in case of T == Any
function stipple_parse(::Type{Any}, v::T) where {T}
v::T
end

0 comments on commit 086c6e0

Please sign in to comment.