Arguments for Value types



Are Value types supposed to be able to take any Julia value as an argument?

julia> Val((2,42))
Val{(2, 42)}()

julia> Val(("ok","then"))
ERROR: TypeError: in Type, in parameter, expected Type, got Tuple{String,String}
 [1] Val(::Tuple{String,String}) at ./essentials.jl:683
 [2] top-level scope at none:0


This has previously been discussed here


Thanks, in reading the docs I had missed the part about the “isbits” constraint