Parametric supertyping using struct field parameters

struct Bar{T, F <: AbstractFoo{T}} <: AbstractFoo{T} 
    foo::F
end

Should work

1 Like