Is it possible to have struct to parametric with Val{}?

Why not remove the Val?

struct AAA{B}
    aaa::Bool
end
b = AAA{true}(true)
2 Likes