julia> abstract type Environment end
julia> abstract type SymTable{mutability} <: Environment end
julia> mutable struct BigSymTable{M<:Bool} <: SymTable{M}
dict::Dict{Symbol,Any}
BigSymTable{M}(dict::Dict{Symbol,T} = Dict{Symbol,Any}()) where T where M = new{M}(dict)
end
julia> BigSymTable{false}()
ERROR: TypeError: BigSymTable: in M, expected M<:Bool, got Bool
What is wrong with this picture?
Thanks