Hi guys,
Can anyone explain me why this code is not working:
struct Design_Variable{T<:Union{Type{Val{:MGEO_Canonical}},
Type{Val{:MGEO_Var}}}}
bits::Int64
min::Float64
max::Float64
full_scale::Int64
index::Int64
name::AbstractString
end
julia> Design_Variable{Val{:MGEO_Canonical}}(10,10.,10.,10,10,"Var")
ERROR: TypeError: in Design_Variable, in T, expected T<:Union{Type{Val{:MGEO_Canonical}}, Type{Val{:MGEO_Var}}}, got Type{DataType}