From 086c6e08518668947d9101714b0b89dc08f50c72 Mon Sep 17 00:00:00 2001 From: hhaensel Date: Tue, 19 Mar 2024 18:02:50 +0100 Subject: [PATCH] fix ambiguities in stipple_parse for Type{<:Any} --- src/stipple/parsers.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stipple/parsers.jl b/src/stipple/parsers.jl index c460ff6..107a27b 100644 --- a/src/stipple/parsers.jl +++ b/src/stipple/parsers.jl @@ -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 \ No newline at end of file