ERROR: MethodError: Cannot `convert` an object of type String to an object of type X
Closest candidates are:
convert(::Type{T}, ::T) where T at ~/distr/julia-1.7.3/share/julia/base/essentials.jl:218
X(::String) at ~/code/scratch.jl:4
X(::Any) at ~/code/scratch.jl:4
Stacktrace:
[1] _totuple
@ ./tuple.jl:330 [inlined]
[2] Tuple{X}(itr::Vector{Any})
@ Base ./tuple.jl:317
[3] bson_representation_convert
@ ~/.julia/packages/LightBSON/WrSYn/src/representations.jl:14 [inlined]
Defining Base.convert(::Type{X}, ::AbstractString) helps, but but it shouldn't be needed:
Conversions API currently doesn't look inside tuples.
However this throws:
Defining
Base.convert(::Type{X}, ::AbstractString)
helps, but but it shouldn't be needed: