RedefStructs.jl icon indicating copy to clipboard operation
RedefStructs.jl copied to clipboard

`@redef_print` doesn't work with parametric types

Open FedericoStra opened this issue 3 years ago • 0 comments

julia> using RedefStructs

julia> @redef_print struct S{T}
           x::T
       end
ERROR: ArgumentError: method definition for show_datatype at /home/fstra/.julia/dev/RedefStructs/src/RedefStructs.jl:88 has free type variables
Stacktrace:
 [1] top-level scope
   @ ~/.julia/dev/RedefStructs/src/RedefStructs.jl:91

FedericoStra avatar Apr 08 '21 13:04 FedericoStra