How to recover the parameters of a parametric type?

How about this?

get_T(::Fixed{T, f}) where {T, f} = T

get_f(::Fixed{T, f}) where {T, f} = f

Those functions expect to be passed a value of some Fixed type. If you want to pass the type itself, you can do:

get_T(::Type{Fixed{T, f}}) where {T, f} = T
5 Likes